Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
3b223388
Commit
3b223388
authored
Nov 17, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14287 ジャンルツリーのアイコンが逆+第一階層を開く
parent
636e7ec9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
abvw/js/home.js
+27
-2
No files found.
abvw/js/home.js
View file @
3b223388
...
@@ -1013,8 +1013,9 @@ function getDataJsonFileGenre() {
...
@@ -1013,8 +1013,9 @@ function getDataJsonFileGenre() {
node
.
Value
=
dataGenre
[
i
].
categoryId
;
node
.
Value
=
dataGenre
[
i
].
categoryId
;
node
.
ContentCount
=
dataGenre
[
i
].
contentCount
;
node
.
ContentCount
=
dataGenre
[
i
].
contentCount
;
AddChidrenNodeGenre
(
node
);
AddChidrenNodeGenre
(
node
);
////#13200 カテゴリツリーの階層プラス・マイナスのアイコンが逆
//node.IsClosed = false; //#13200 カテゴリツリーの階層プラス・マイナスのアイコンが逆
node
.
IsClosed
=
false
;
node
.
ExpandAfterBuild
=
true
;
//#14287 第一階層を開くようにする
node
.
IsCategory
=
node
.
ChildNodes
.
length
>
0
;
// Has child node
node
.
IsCategory
=
node
.
ChildNodes
.
length
>
0
;
// Has child node
arrData
.
push
(
node
);
arrData
.
push
(
node
);
...
@@ -1033,6 +1034,27 @@ function getDataJsonFileGenre() {
...
@@ -1033,6 +1034,27 @@ function getDataJsonFileGenre() {
$
(
'#all'
).
css
(
'text-decoration'
,
'underline'
);
$
(
'#all'
).
css
(
'text-decoration'
,
'underline'
);
$
(
'.treeview > li'
).
addClass
(
'tabCategory'
);
$
(
'.treeview > li'
).
addClass
(
'tabCategory'
);
// Expand nodes(#14287 第1階層を開くようにする)
for
(
var
nIndex
=
0
;
nIndex
<
tree1
.
ExpandNodes
.
length
;
nIndex
++
)
{
if
(
$
(
"#"
+
tree1
.
ExpandNodes
[
nIndex
]).
parent
())
{
var
objParent
=
$
(
"#"
+
tree1
.
ExpandNodes
[
nIndex
]).
parent
();
var
objChild
=
objParent
.
children
()[
0
];
if
(
objChild
)
{
try
{
objChild
.
click
();
}
catch
(
err
)
{
// For safari
var
evObj
=
document
.
createEvent
(
'MouseEvents'
);
evObj
.
initMouseEvent
(
'click'
,
true
,
true
,
window
);
objChild
.
dispatchEvent
(
evObj
);
}
}
}
}
});
});
};
};
...
@@ -1193,6 +1215,9 @@ function getDataJsonFileGroup() {
...
@@ -1193,6 +1215,9 @@ function getDataJsonFileGroup() {
// Expand nodes
// Expand nodes
for
(
var
nIndex
=
0
;
nIndex
<
tree2
.
ExpandNodes
.
length
;
nIndex
++
)
{
for
(
var
nIndex
=
0
;
nIndex
<
tree2
.
ExpandNodes
.
length
;
nIndex
++
)
{
if
(
$
(
"#"
+
tree2
.
ExpandNodes
[
nIndex
]).
parent
())
{
if
(
$
(
"#"
+
tree2
.
ExpandNodes
[
nIndex
]).
parent
())
{
console
.
log
(
"tree2.ExpandNodes"
);
var
objParent
=
$
(
"#"
+
tree2
.
ExpandNodes
[
nIndex
]).
parent
();
var
objParent
=
$
(
"#"
+
tree2
.
ExpandNodes
[
nIndex
]).
parent
();
var
objChild
=
objParent
.
children
()[
0
];
var
objChild
=
objParent
.
children
()[
0
];
if
(
objChild
)
{
if
(
objChild
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment