Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
chenjunxiong
guns-vip
Commits
18e7b67e
Commit
18e7b67e
authored
Aug 05, 2018
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复递归的一个bug
parent
492402f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
guns-admin/src/main/webapp/static/js/plugins/bootstrap-treetable/bootstrap-treetable.js
+5
-2
No files found.
guns-admin/src/main/webapp/static/js/plugins/bootstrap-treetable/bootstrap-treetable.js
View file @
18e7b67e
...
...
@@ -18,16 +18,19 @@ function extracted($, item, target, globalCollapsedFlag, options) {
$
.
each
(
subItems
,
function
(
pIndex
,
pItem
)
{
//如果是展开,判断当前箭头是开启还是关闭
var
expander
=
$
(
item
).
find
(
"td[name='name']"
).
find
(
".treetable-expander"
);
if
(
!
globalCollapsedFlag
)
{
var
hasExpander
=
$
(
item
).
find
(
"td[name='name']"
).
find
(
".treetable-expander"
)
.
hasClass
(
options
.
expanderExpandedClass
);
var
hasExpander
=
expander
.
hasClass
(
options
.
expanderExpandedClass
);
if
(
hasExpander
)
{
$
(
pItem
).
css
(
"display"
,
"table"
);
}
else
{
$
(
pItem
).
css
(
"display"
,
"none"
);
}
}
else
{
//如果是折叠,就把当前开着的都折叠掉
$
(
pItem
).
css
(
"display"
,
"none"
);
expander
.
removeClass
(
options
.
expanderExpandedClass
);
expander
.
addClass
(
options
.
expanderCollapsedClass
);
}
});
}
...
...
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