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
55ef29e7
Commit
55ef29e7
authored
Nov 17, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14287 ジャンルツリー第一階層を開く
parent
72f4ab05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
abvw/js/home.js
+24
-2
No files found.
abvw/js/home.js
View file @
55ef29e7
...
...
@@ -811,8 +811,9 @@ HOME.getDataJsonFileGenre = function() {
node
.
Value
=
HOME
.
dataGenre
[
i
].
categoryId
;
node
.
ContentCount
=
HOME
.
dataGenre
[
i
].
contentCount
;
HOME
.
AddChidrenNodeGenre
(
node
);
//#13200 カテゴリツリーの階層プラス・マイナスのアイコンが逆
//node.IsClosed = false;
//node.IsClosed = false; //#13200 カテゴリツリーの階層プラス・マイナスのアイコンが逆
node
.
ExpandAfterBuild
=
true
;
//#14287 第一階層を開くようにする
node
.
IsCategory
=
node
.
ChildNodes
.
length
>
0
;
// Has child node
arrData
.
push
(
node
);
...
...
@@ -831,6 +832,27 @@ HOME.getDataJsonFileGenre = function() {
$
(
'#all'
).
css
(
'text-decoration'
,
'underline'
);
$
(
'.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
);
}
}
}
}
});
};
...
...
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