Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GitCode
1024程序员开源挑战赛(10.23-11.14)
提交
a839b292
1
1024程序员开源挑战赛(10.23-11.14)
项目概览
GitCode
/
1024程序员开源挑战赛(10.23-11.14)
通知
180870
Star
1064
Fork
1041
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
86
列表
看板
标记
里程碑
合并请求
8
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
1
1024程序员开源挑战赛(10.23-11.14)
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
86
Issue
86
列表
看板
标记
里程碑
合并请求
8
合并请求
8
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a839b292
编写于
1月 30, 2018
作者:
Z
ztree
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* [修改] nodeIsParent 方法内的错误 Thanks @netmou
上级
6a798d83
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
167 addition
and
164 deletion
+167
-164
README.md
README.md
+1
-1
api/API_cn.html
api/API_cn.html
+1
-1
api/API_en.html
api/API_en.html
+1
-1
api/apiCss/jquery.ztree.core.js
api/apiCss/jquery.ztree.core.js
+45
-45
js/jquery.ztree.all.js
js/jquery.ztree.all.js
+7
-7
js/jquery.ztree.all.min.js
js/jquery.ztree.all.min.js
+49
-49
js/jquery.ztree.core.js
js/jquery.ztree.core.js
+3
-3
js/jquery.ztree.core.min.js
js/jquery.ztree.core.min.js
+45
-45
js/jquery.ztree.excheck.js
js/jquery.ztree.excheck.js
+2
-2
js/jquery.ztree.excheck.min.js
js/jquery.ztree.excheck.min.js
+2
-2
js/jquery.ztree.exedit.js
js/jquery.ztree.exedit.js
+2
-2
js/jquery.ztree.exedit.min.js
js/jquery.ztree.exedit.min.js
+2
-2
js/jquery.ztree.exhide.js
js/jquery.ztree.exhide.js
+2
-2
js/jquery.ztree.exhide.min.js
js/jquery.ztree.exhide.min.js
+2
-2
log v3.x.txt
log v3.x.txt
+3
-0
未找到文件。
README.md
浏览文件 @
a839b292
jQuery Tree Plugin ---- zTree
jQuery Tree Plugin ---- zTree
============
============
last verson : 3.5.3
2
last verson : 3.5.3
3
**Donate to zTree**
: http://www.treejs.cn/v3/donate.php
**Donate to zTree**
: http://www.treejs.cn/v3/donate.php
...
...
api/API_cn.html
浏览文件 @
a839b292
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<div
class=
"ieSuggest"
>
浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!
</div>
<div
class=
"ieSuggest"
>
浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!
</div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"header-text"
>
<div
class=
"header-text"
>
<h1><em>
zTree v3.5.3
2
API 文档
</em></h1><p></p>
<h1><em>
zTree v3.5.3
3
API 文档
</em></h1><p></p>
<p>
all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。
</p>
<p>
all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。
</p>
</div>
</div>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
...
...
api/API_en.html
浏览文件 @
a839b292
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
class=
"ieSuggest"
>
If you use the Chrome / FireFox / Opera / IE9 browser will be even more dazzling effect!
</div>
<div
class=
"ieSuggest"
>
If you use the Chrome / FireFox / Opera / IE9 browser will be even more dazzling effect!
</div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"header-text"
>
<div
class=
"header-text"
>
<h1><em>
zTree v3.5.3
2
API Document
</em></h1><p></p>
<h1><em>
zTree v3.5.3
3
API Document
</em></h1><p></p>
<p>
all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.
</p>
<p>
all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.
</p>
</div>
</div>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
...
...
api/apiCss/jquery.ztree.core.js
浏览文件 @
a839b292
此差异已折叠。
点击以展开。
js/jquery.ztree.all.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree core v3.5.3
2
* JQuery zTree core v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
$
)
{
(
function
(
$
)
{
var
settings
=
{},
roots
=
{},
caches
=
{},
var
settings
=
{},
roots
=
{},
caches
=
{},
...
@@ -628,7 +628,7 @@
...
@@ -628,7 +628,7 @@
var
key
=
setting
.
data
.
key
.
isParent
;
var
key
=
setting
.
data
.
key
.
isParent
;
if
(
typeof
newIsParent
!==
'
undefined
'
)
{
if
(
typeof
newIsParent
!==
'
undefined
'
)
{
if
(
typeof
newIsParent
===
"
string
"
)
{
if
(
typeof
newIsParent
===
"
string
"
)
{
newIsParent
=
tools
.
eqs
(
checked
,
"
true
"
);
newIsParent
=
tools
.
eqs
(
newIsParent
,
"
true
"
);
}
}
newIsParent
=
!!
newIsParent
;
newIsParent
=
!!
newIsParent
;
node
[
key
]
=
newIsParent
;
node
[
key
]
=
newIsParent
;
...
@@ -1981,7 +1981,7 @@
...
@@ -1981,7 +1981,7 @@
consts
=
zt
.
consts
;
consts
=
zt
.
consts
;
})(
jQuery
);
})(
jQuery
);
/*
/*
* JQuery zTree excheck v3.5.3
2
* JQuery zTree excheck v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -1990,7 +1990,7 @@
...
@@ -1990,7 +1990,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of excheck
//default consts of excheck
...
@@ -2625,7 +2625,7 @@
...
@@ -2625,7 +2625,7 @@
}
}
})(
jQuery
);
})(
jQuery
);
/*
/*
* JQuery zTree exedit v3.5.3
2
* JQuery zTree exedit v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -2634,7 +2634,7 @@
...
@@ -2634,7 +2634,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of exedit
//default consts of exedit
...
...
js/jquery.ztree.all.min.js
浏览文件 @
a839b292
此差异已折叠。
点击以展开。
js/jquery.ztree.core.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree core v3.5.3
2
* JQuery zTree core v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
$
)
{
(
function
(
$
)
{
var
settings
=
{},
roots
=
{},
caches
=
{},
var
settings
=
{},
roots
=
{},
caches
=
{},
...
@@ -627,7 +627,7 @@
...
@@ -627,7 +627,7 @@
var
key
=
setting
.
data
.
key
.
isParent
;
var
key
=
setting
.
data
.
key
.
isParent
;
if
(
typeof
newIsParent
!==
'
undefined
'
)
{
if
(
typeof
newIsParent
!==
'
undefined
'
)
{
if
(
typeof
newIsParent
===
"
string
"
)
{
if
(
typeof
newIsParent
===
"
string
"
)
{
newIsParent
=
tools
.
eqs
(
checked
,
"
true
"
);
newIsParent
=
tools
.
eqs
(
newIsParent
,
"
true
"
);
}
}
newIsParent
=
!!
newIsParent
;
newIsParent
=
!!
newIsParent
;
node
[
key
]
=
newIsParent
;
node
[
key
]
=
newIsParent
;
...
...
js/jquery.ztree.core.min.js
浏览文件 @
a839b292
此差异已折叠。
点击以展开。
js/jquery.ztree.excheck.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree excheck v3.5.3
2
* JQuery zTree excheck v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of excheck
//default consts of excheck
...
...
js/jquery.ztree.excheck.min.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree excheck v3.5.3
2
* JQuery zTree excheck v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
n
){
var
q
,
r
,
s
,
p
=
{
event
:{
CHECK
:
"
ztree_check
"
},
id
:{
CHECK
:
"
_check
"
},
checkbox
:{
STYLE
:
"
checkbox
"
,
DEFAULT
:
"
chk
"
,
DISABLED
:
"
disable
"
,
FALSE
:
"
false
"
,
TRUE
:
"
true
"
,
FULL
:
"
full
"
,
PART
:
"
part
"
,
FOCUS
:
"
focus
"
},
radio
:{
STYLE
:
"
radio
"
,
TYPE_ALL
:
"
all
"
,
TYPE_LEVEL
:
"
level
"
}},
w
=
{
check
:{
enable
:
!
1
,
autoCheckTrigger
:
!
1
,
chkStyle
:
p
.
checkbox
.
STYLE
,
nocheckInherit
:
!
1
,
chkDisabledInherit
:
!
1
,
radioType
:
p
.
radio
.
TYPE_LEVEL
,
chkboxType
:{
Y
:
"
ps
"
,
N
:
"
ps
"
}},
data
:{
key
:{
checked
:
"
checked
"
}},
callback
:{
beforeCheck
:
null
,
onCheck
:
null
}};
q
=
function
(
c
,
(
function
(
n
){
var
q
,
r
,
s
,
p
=
{
event
:{
CHECK
:
"
ztree_check
"
},
id
:{
CHECK
:
"
_check
"
},
checkbox
:{
STYLE
:
"
checkbox
"
,
DEFAULT
:
"
chk
"
,
DISABLED
:
"
disable
"
,
FALSE
:
"
false
"
,
TRUE
:
"
true
"
,
FULL
:
"
full
"
,
PART
:
"
part
"
,
FOCUS
:
"
focus
"
},
radio
:{
STYLE
:
"
radio
"
,
TYPE_ALL
:
"
all
"
,
TYPE_LEVEL
:
"
level
"
}},
w
=
{
check
:{
enable
:
!
1
,
autoCheckTrigger
:
!
1
,
chkStyle
:
p
.
checkbox
.
STYLE
,
nocheckInherit
:
!
1
,
chkDisabledInherit
:
!
1
,
radioType
:
p
.
radio
.
TYPE_LEVEL
,
chkboxType
:{
Y
:
"
ps
"
,
N
:
"
ps
"
}},
data
:{
key
:{
checked
:
"
checked
"
}},
callback
:{
beforeCheck
:
null
,
onCheck
:
null
}};
q
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
e
.
getSetting
(
c
.
data
.
treeId
);
if
(
i
.
apply
(
b
.
callback
.
beforeCheck
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
!
0
;
var
d
=
e
.
nodeChecked
(
b
,
a
);
e
.
nodeChecked
(
b
,
a
,
!
d
);
f
.
checkNodeRelation
(
b
,
a
);
d
=
m
(
a
,
h
.
id
.
CHECK
,
b
);
f
.
setChkClass
(
b
,
d
,
a
);
f
.
repairParentChkClassWithSelf
(
b
,
a
);
b
.
treeObj
.
trigger
(
h
.
event
.
CHECK
,[
c
,
b
.
treeId
,
a
]);
return
!
0
};
r
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
e
.
getSetting
(
c
.
data
.
treeId
),
d
=
m
(
a
,
h
.
id
.
CHECK
,
b
);
a
.
check_Focus
=!
0
;
f
.
setChkClass
(
b
,
d
,
a
);
return
!
0
};
s
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
e
.
getSetting
(
c
.
data
.
treeId
);
if
(
i
.
apply
(
b
.
callback
.
beforeCheck
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
!
0
;
var
d
=
e
.
nodeChecked
(
b
,
a
);
e
.
nodeChecked
(
b
,
a
,
!
d
);
f
.
checkNodeRelation
(
b
,
a
);
d
=
m
(
a
,
h
.
id
.
CHECK
,
b
);
f
.
setChkClass
(
b
,
d
,
a
);
f
.
repairParentChkClassWithSelf
(
b
,
a
);
b
.
treeObj
.
trigger
(
h
.
event
.
CHECK
,[
c
,
b
.
treeId
,
a
]);
return
!
0
};
r
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
e
.
getSetting
(
c
.
data
.
treeId
),
d
=
m
(
a
,
h
.
id
.
CHECK
,
b
);
a
.
check_Focus
=!
0
;
f
.
setChkClass
(
b
,
d
,
a
);
return
!
0
};
s
=
function
(
c
,
...
...
js/jquery.ztree.exedit.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree exedit v3.5.3
2
* JQuery zTree exedit v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
$
){
(
function
(
$
){
//default consts of exedit
//default consts of exedit
...
...
js/jquery.ztree.exedit.min.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree exedit v3.5.3
2
* JQuery zTree exedit v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
B
){
var
I
=
{
event
:{
DRAG
:
"
ztree_drag
"
,
DROP
:
"
ztree_drop
"
,
RENAME
:
"
ztree_rename
"
,
DRAGMOVE
:
"
ztree_dragmove
"
},
id
:{
EDIT
:
"
_edit
"
,
INPUT
:
"
_input
"
,
REMOVE
:
"
_remove
"
},
move
:{
TYPE_INNER
:
"
inner
"
,
TYPE_PREV
:
"
prev
"
,
TYPE_NEXT
:
"
next
"
},
node
:{
CURSELECTED_EDIT
:
"
curSelectedNode_Edit
"
,
TMPTARGET_TREE
:
"
tmpTargetzTree
"
,
TMPTARGET_NODE
:
"
tmpTargetNode
"
}},
v
=
{
onHoverOverNode
:
function
(
a
,
b
){
var
c
=
i
.
getSetting
(
a
.
data
.
treeId
),
d
=
i
.
getRoot
(
c
);
if
(
d
.
curHoverNode
!=
b
)
v
.
onHoverOutNode
(
a
);
d
.
curHoverNode
=
b
;
e
.
addHoverDom
(
c
,
b
)},
onHoverOutNode
:
function
(
a
){
var
a
=
(
function
(
B
){
var
I
=
{
event
:{
DRAG
:
"
ztree_drag
"
,
DROP
:
"
ztree_drop
"
,
RENAME
:
"
ztree_rename
"
,
DRAGMOVE
:
"
ztree_dragmove
"
},
id
:{
EDIT
:
"
_edit
"
,
INPUT
:
"
_input
"
,
REMOVE
:
"
_remove
"
},
move
:{
TYPE_INNER
:
"
inner
"
,
TYPE_PREV
:
"
prev
"
,
TYPE_NEXT
:
"
next
"
},
node
:{
CURSELECTED_EDIT
:
"
curSelectedNode_Edit
"
,
TMPTARGET_TREE
:
"
tmpTargetzTree
"
,
TMPTARGET_NODE
:
"
tmpTargetNode
"
}},
v
=
{
onHoverOverNode
:
function
(
a
,
b
){
var
c
=
i
.
getSetting
(
a
.
data
.
treeId
),
d
=
i
.
getRoot
(
c
);
if
(
d
.
curHoverNode
!=
b
)
v
.
onHoverOutNode
(
a
);
d
.
curHoverNode
=
b
;
e
.
addHoverDom
(
c
,
b
)},
onHoverOutNode
:
function
(
a
){
var
a
=
i
.
getSetting
(
a
.
data
.
treeId
),
b
=
i
.
getRoot
(
a
);
if
(
b
.
curHoverNode
&&!
i
.
isSelectedNode
(
a
,
b
.
curHoverNode
))
e
.
removeTreeDom
(
a
,
b
.
curHoverNode
),
b
.
curHoverNode
=
null
},
onMousedownNode
:
function
(
a
,
b
){
function
c
(
a
){
if
(
m
.
dragFlag
==
0
&&
Math
.
abs
(
N
-
a
.
clientX
)
<
f
.
edit
.
drag
.
minMoveSize
&&
Math
.
abs
(
O
-
a
.
clientY
)
<
f
.
edit
.
drag
.
minMoveSize
)
return
!
0
;
var
b
,
c
,
g
,
j
;
L
.
css
(
"
cursor
"
,
"
pointer
"
);
if
(
m
.
dragFlag
==
0
){
if
(
k
.
apply
(
f
.
callback
.
beforeDrag
,[
f
.
treeId
,
n
],
!
0
)
==!
1
)
return
l
(
a
),
!
0
;
for
(
b
=
0
,
c
=
n
.
length
;
b
<
c
;
b
++
){
if
(
b
==
0
)
m
.
dragNodeShowBefore
=
[];
i
.
getSetting
(
a
.
data
.
treeId
),
b
=
i
.
getRoot
(
a
);
if
(
b
.
curHoverNode
&&!
i
.
isSelectedNode
(
a
,
b
.
curHoverNode
))
e
.
removeTreeDom
(
a
,
b
.
curHoverNode
),
b
.
curHoverNode
=
null
},
onMousedownNode
:
function
(
a
,
b
){
function
c
(
a
){
if
(
m
.
dragFlag
==
0
&&
Math
.
abs
(
N
-
a
.
clientX
)
<
f
.
edit
.
drag
.
minMoveSize
&&
Math
.
abs
(
O
-
a
.
clientY
)
<
f
.
edit
.
drag
.
minMoveSize
)
return
!
0
;
var
b
,
c
,
g
,
j
;
L
.
css
(
"
cursor
"
,
"
pointer
"
);
if
(
m
.
dragFlag
==
0
){
if
(
k
.
apply
(
f
.
callback
.
beforeDrag
,[
f
.
treeId
,
n
],
!
0
)
==!
1
)
return
l
(
a
),
!
0
;
for
(
b
=
0
,
c
=
n
.
length
;
b
<
c
;
b
++
){
if
(
b
==
0
)
m
.
dragNodeShowBefore
=
[];
...
...
js/jquery.ztree.exhide.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree exHideNodes v3.5.3
2
* JQuery zTree exHideNodes v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
$
){
(
function
(
$
){
var
_setting
=
{
var
_setting
=
{
...
...
js/jquery.ztree.exhide.min.js
浏览文件 @
a839b292
/*
/*
* JQuery zTree exHideNodes v3.5.3
2
* JQuery zTree exHideNodes v3.5.3
3
* http://treejs.cn/
* http://treejs.cn/
*
*
* Copyright (c) 2010 Hunter.z
* Copyright (c) 2010 Hunter.z
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/mit-license.php
*
*
* email: hunter.z@263.net
* email: hunter.z@263.net
* Date: 2018-01-
06
* Date: 2018-01-
30
*/
*/
(
function
(
j
){
j
.
extend
(
!
0
,
j
.
fn
.
zTree
.
_z
,{
view
:{
clearOldFirstNode
:
function
(
c
,
a
){
for
(
var
b
=
a
.
getNextNode
();
b
;){
if
(
b
.
isFirstNode
){
b
.
isFirstNode
=!
1
;
e
.
setNodeLineIcos
(
c
,
b
);
break
}
if
(
b
.
isLastNode
)
break
;
b
=
b
.
getNextNode
()}},
clearOldLastNode
:
function
(
c
,
a
,
b
){
for
(
a
=
a
.
getPreNode
();
a
;){
if
(
a
.
isLastNode
){
a
.
isLastNode
=!
1
;
b
&&
e
.
setNodeLineIcos
(
c
,
a
);
break
}
if
(
a
.
isFirstNode
)
break
;
a
=
a
.
getPreNode
()}},
makeDOMNodeMainBefore
:
function
(
c
,
a
,
b
){
a
=
d
.
isHidden
(
a
,
b
);
c
.
push
(
"
<li
"
,
a
?
"
style='display:none;'
"
:
""
,
"
id='
"
,
b
.
tId
,
"
' class='
"
,
(
function
(
j
){
j
.
extend
(
!
0
,
j
.
fn
.
zTree
.
_z
,{
view
:{
clearOldFirstNode
:
function
(
c
,
a
){
for
(
var
b
=
a
.
getNextNode
();
b
;){
if
(
b
.
isFirstNode
){
b
.
isFirstNode
=!
1
;
e
.
setNodeLineIcos
(
c
,
b
);
break
}
if
(
b
.
isLastNode
)
break
;
b
=
b
.
getNextNode
()}},
clearOldLastNode
:
function
(
c
,
a
,
b
){
for
(
a
=
a
.
getPreNode
();
a
;){
if
(
a
.
isLastNode
){
a
.
isLastNode
=!
1
;
b
&&
e
.
setNodeLineIcos
(
c
,
a
);
break
}
if
(
a
.
isFirstNode
)
break
;
a
=
a
.
getPreNode
()}},
makeDOMNodeMainBefore
:
function
(
c
,
a
,
b
){
a
=
d
.
isHidden
(
a
,
b
);
c
.
push
(
"
<li
"
,
a
?
"
style='display:none;'
"
:
""
,
"
id='
"
,
b
.
tId
,
"
' class='
"
,
l
.
className
.
LEVEL
,
b
.
level
,
"
' tabindex='0' hidefocus='true' treenode>
"
)},
showNode
:
function
(
c
,
a
){
d
.
isHidden
(
c
,
a
,
!
1
);
d
.
initShowForExCheck
(
c
,
a
);
k
(
a
,
c
).
show
()},
showNodes
:
function
(
c
,
a
,
b
){
if
(
a
&&
a
.
length
!=
0
){
var
f
=
{},
g
,
i
;
for
(
g
=
0
,
i
=
a
.
length
;
g
<
i
;
g
++
){
var
h
=
a
[
g
];
if
(
!
f
[
h
.
parentTId
]){
var
u
=
h
.
getParentNode
();
f
[
h
.
parentTId
]
=
u
===
null
?
d
.
getRoot
(
c
):
h
.
getParentNode
()}
e
.
showNode
(
c
,
h
,
b
)}
for
(
var
j
in
f
)
a
=
d
.
nodeChildren
(
c
,
f
[
j
]),
e
.
setFirstNodeForShow
(
c
,
a
),
e
.
setLastNodeForShow
(
c
,
a
)}},
hideNode
:
function
(
c
,
a
){
d
.
isHidden
(
c
,
a
,
l
.
className
.
LEVEL
,
b
.
level
,
"
' tabindex='0' hidefocus='true' treenode>
"
)},
showNode
:
function
(
c
,
a
){
d
.
isHidden
(
c
,
a
,
!
1
);
d
.
initShowForExCheck
(
c
,
a
);
k
(
a
,
c
).
show
()},
showNodes
:
function
(
c
,
a
,
b
){
if
(
a
&&
a
.
length
!=
0
){
var
f
=
{},
g
,
i
;
for
(
g
=
0
,
i
=
a
.
length
;
g
<
i
;
g
++
){
var
h
=
a
[
g
];
if
(
!
f
[
h
.
parentTId
]){
var
u
=
h
.
getParentNode
();
f
[
h
.
parentTId
]
=
u
===
null
?
d
.
getRoot
(
c
):
h
.
getParentNode
()}
e
.
showNode
(
c
,
h
,
b
)}
for
(
var
j
in
f
)
a
=
d
.
nodeChildren
(
c
,
f
[
j
]),
e
.
setFirstNodeForShow
(
c
,
a
),
e
.
setLastNodeForShow
(
c
,
a
)}},
hideNode
:
function
(
c
,
a
){
d
.
isHidden
(
c
,
a
,
...
...
log v3.x.txt
浏览文件 @
a839b292
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
</font>
</font>
*2018.01.30* v3.5.33
* [修改] nodeIsParent 方法内的错误 Thanks @netmou
*2018.01.06* v3.5.32
*2018.01.06* v3.5.32
* [修改] setting.async.autoParam / otherParam 支持 function
* [修改] setting.async.autoParam / otherParam 支持 function
* [修改] isParent / isHidden 允许自定义属性名称 setting.data.key.isParent / isHidden
* [修改] isParent / isHidden 允许自定义属性名称 setting.data.key.isParent / isHidden
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录