Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GitCode
1024程序员开源挑战赛(10.23-11.14)
提交
d57b614b
1
1024程序员开源挑战赛(10.23-11.14)
项目概览
GitCode
/
1024程序员开源挑战赛(10.23-11.14)
通知
180867
Star
1064
Fork
1042
代码
文件
提交
分支
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看板
提交
d57b614b
编写于
6月 06, 2016
作者:
Z
ztree
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed bug: Sometimes, the parameter 'isSilent' of selectNode() method was not work .
上级
f77682f8
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
47 addition
and
44 deletion
+47
-44
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
+5
-5
js/jquery.ztree.all.js
js/jquery.ztree.all.js
+7
-7
js/jquery.ztree.all.min.js
js/jquery.ztree.all.min.js
+9
-9
js/jquery.ztree.core.js
js/jquery.ztree.core.js
+3
-3
js/jquery.ztree.core.min.js
js/jquery.ztree.core.min.js
+5
-5
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
浏览文件 @
d57b614b
jQuery Tree Plugin ---- zTree
============
last verson : 3.5.2
3
last verson : 3.5.2
4
**Donate to zTree**
: http://www.ztree.me/v3/donate.php
...
...
api/API_cn.html
浏览文件 @
d57b614b
...
...
@@ -35,7 +35,7 @@
<div
class=
"ieSuggest"
>
浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!
</div>
<div
class=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"header-text"
>
<h1><em>
zTree v3.5.2
3
API 文档
</em></h1><p></p>
<h1><em>
zTree v3.5.2
4
API 文档
</em></h1><p></p>
<p>
all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。
</p>
</div>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
...
...
api/API_en.html
浏览文件 @
d57b614b
...
...
@@ -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=
"google_plus"
><g:plusone></g:plusone></div>
<div
class=
"header-text"
>
<h1><em>
zTree v3.5.2
3
API Document
</em></h1><p></p>
<h1><em>
zTree v3.5.2
4
API Document
</em></h1><p></p>
<p>
all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.
</p>
</div>
<ul
class=
"shortcuts language"
style=
"top:0;"
>
...
...
api/apiCss/jquery.ztree.core.js
浏览文件 @
d57b614b
/*
* JQuery zTree core v3.5.2
3
* JQuery zTree core v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,11 +8,11 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
q
){
var
I
,
J
,
K
,
L
,
M
,
N
,
v
,
s
=
{},
w
=
{},
x
=
{},
O
=
{
treeId
:
""
,
treeObj
:
null
,
view
:{
addDiyDom
:
null
,
autoCancelSelected
:
!
0
,
dblClickExpand
:
!
0
,
expandSpeed
:
"
fast
"
,
fontCss
:{},
nameIsHTML
:
!
1
,
selectedMulti
:
!
0
,
showIcon
:
!
0
,
showLine
:
!
0
,
showTitle
:
!
0
,
txtSelectedEnable
:
!
1
},
data
:{
key
:{
children
:
"
children
"
,
name
:
"
name
"
,
title
:
""
,
url
:
"
url
"
,
icon
:
"
icon
"
},
simpleData
:{
enable
:
!
1
,
idKey
:
"
id
"
,
pIdKey
:
"
pId
"
,
rootPId
:
null
},
keep
:{
parent
:
!
1
,
leaf
:
!
1
}},
async
:{
enable
:
!
1
,
contentType
:
"
application/x-www-form-urlencoded
"
,
type
:
"
post
"
,
dataType
:
"
text
"
,
url
:
""
,
autoParam
:[],
otherParam
:[],
dataFilter
:
null
},
callback
:{
beforeAsync
:
null
,
beforeClick
:
null
,
beforeDblClick
:
null
,
beforeRightClick
:
null
,
beforeMouseDown
:
null
,
beforeMouseUp
:
null
,
beforeExpand
:
null
,
beforeCollapse
:
null
,
beforeRemove
:
null
,
onAsyncError
:
null
,
onAsyncSuccess
:
null
,
onNodeCreated
:
null
,
onClick
:
null
,
onDblClick
:
null
,
onRightClick
:
null
,
onMouseDown
:
null
,
onMouseUp
:
null
,
onExpand
:
null
,
onCollapse
:
null
,
onRemove
:
null
}},
y
=
[
function
(
b
){
var
a
=
b
.
treeObj
,
c
=
f
.
event
;
a
.
bind
(
c
.
NODECREATED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onNodeCreated
,
[
a
,
c
,
g
])});
a
.
bind
(
c
.
CLICK
,
function
(
a
,
c
,
g
,
m
,
h
){
j
.
apply
(
b
.
callback
.
onClick
,[
c
,
g
,
m
,
h
])});
a
.
bind
(
c
.
EXPAND
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onExpand
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
COLLAPSE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onCollapse
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
ASYNC_SUCCESS
,
function
(
a
,
c
,
g
,
h
){
j
.
apply
(
b
.
callback
.
onAsyncSuccess
,[
a
,
c
,
g
,
h
])});
a
.
bind
(
c
.
ASYNC_ERROR
,
function
(
a
,
c
,
g
,
h
,
f
,
i
){
j
.
apply
(
b
.
callback
.
onAsyncError
,[
a
,
c
,
g
,
h
,
f
,
i
])});
a
.
bind
(
c
.
REMOVE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onRemove
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
SELECTED
,
[
a
,
c
,
g
])});
a
.
bind
(
c
.
CLICK
,
function
(
a
,
c
,
g
,
m
,
h
){
j
.
apply
(
b
.
callback
.
onClick
,[
c
,
g
,
m
,
h
])});
a
.
bind
(
c
.
EXPAND
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onExpand
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
COLLAPSE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onCollapse
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
ASYNC_SUCCESS
,
function
(
a
,
c
,
g
,
m
){
j
.
apply
(
b
.
callback
.
onAsyncSuccess
,[
a
,
c
,
g
,
m
])});
a
.
bind
(
c
.
ASYNC_ERROR
,
function
(
a
,
c
,
g
,
m
,
h
,
f
){
j
.
apply
(
b
.
callback
.
onAsyncError
,[
a
,
c
,
g
,
m
,
h
,
f
])});
a
.
bind
(
c
.
REMOVE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onRemove
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
SELECTED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onSelected
,[
c
,
g
])});
a
.
bind
(
c
.
UNSELECTED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onUnSelected
,[
c
,
g
])})}],
z
=
[
function
(
b
){
var
a
=
f
.
event
;
b
.
treeObj
.
unbind
(
a
.
NODECREATED
).
unbind
(
a
.
CLICK
).
unbind
(
a
.
EXPAND
).
unbind
(
a
.
COLLAPSE
).
unbind
(
a
.
ASYNC_SUCCESS
).
unbind
(
a
.
ASYNC_ERROR
).
unbind
(
a
.
REMOVE
).
unbind
(
a
.
SELECTED
).
unbind
(
a
.
UNSELECTED
)}],
A
=
[
function
(
b
){
var
a
=
h
.
getCache
(
b
);
a
||
(
a
=
{},
h
.
setCache
(
b
,
a
));
a
.
nodes
=
[];
a
.
doms
=
[]}],
B
=
[
function
(
b
,
a
,
c
,
d
,
e
,
g
){
if
(
c
){
var
m
=
h
.
getRoot
(
b
),
f
=
b
.
data
.
key
.
children
;
c
.
level
=
a
;
c
.
tId
=
b
.
treeId
+
"
_
"
+
++
m
.
zId
;
c
.
parentTId
=
d
?
d
.
tId
:
null
;
c
.
open
=
typeof
c
.
open
==
"
string
"
?
j
.
eqs
(
c
.
open
,
"
true
"
):
!!
c
.
open
;
c
[
f
]
&&
c
[
f
].
length
>
0
?(
c
.
isParent
=!
0
,
c
.
zAsync
=!
0
):(
c
.
isParent
=
typeof
c
.
isParent
==
"
string
"
?
j
.
eqs
(
c
.
isParent
,
"
true
"
):
!!
c
.
isParent
,
c
.
open
=
c
.
isParent
&&!
b
.
async
.
enable
?
c
.
open
:
!
1
,
c
.
zAsync
=!
c
.
isParent
);
c
.
isFirstNode
=
e
;
c
.
isLastNode
=
g
;
c
.
getParentNode
=
function
(){
return
h
.
getNodeCache
(
b
,
c
.
parentTId
)};
c
.
getPreNode
=
function
(){
return
h
.
getPreNode
(
b
,
c
)};
c
.
getNextNode
=
function
(){
return
h
.
getNextNode
(
b
,
c
)};
c
.
getIndex
=
function
(){
return
h
.
getNodeIndex
(
b
,
c
)};
c
.
getPath
=
function
(){
return
h
.
getNodePath
(
b
,
c
)};
c
.
isAjaxing
=!
1
;
h
.
fixPIdKeyValue
(
b
,
c
)}}],
u
=
[
function
(
b
){
var
a
=
b
.
target
,
c
=
h
.
getSetting
(
b
.
data
.
treeId
),
d
=
""
,
e
=
null
,
g
=
""
,
m
=
""
,
i
=
null
,
n
=
null
,
k
=
null
;
if
(
j
.
eqs
(
b
.
type
,
"
mousedown
"
))
m
=
"
mousedown
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
mouseup
"
))
m
=
"
mouseup
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
contextmenu
"
))
m
=
"
contextmenu
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
click
"
))
if
(
j
.
eqs
(
a
.
tagName
,
"
span
"
)
&&
a
.
getAttribute
(
"
treeNode
"
+
f
.
id
.
SWITCH
)
!==
null
)
d
=
j
.
getNodeMainDom
(
a
).
id
,
...
...
@@ -22,7 +22,7 @@ D=[],E=[],F=[],G=[],H=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.get
b
):
u
.
push
(
b
)},
addInitRoot
:
function
(
b
){
C
.
push
(
b
)},
addNodesData
:
function
(
b
,
a
,
c
,
d
){
var
e
=
b
.
data
.
key
.
children
;
a
[
e
]?
c
>=
a
[
e
].
length
&&
(
c
=-
1
):(
a
[
e
]
=
[],
c
=-
1
);
if
(
a
[
e
].
length
>
0
&&
c
===
0
)
a
[
e
][
0
].
isFirstNode
=!
1
,
i
.
setNodeLineIcos
(
b
,
a
[
e
][
0
]);
else
if
(
a
[
e
].
length
>
0
&&
c
<
0
)
a
[
e
][
a
[
e
].
length
-
1
].
isLastNode
=!
1
,
i
.
setNodeLineIcos
(
b
,
a
[
e
][
a
[
e
].
length
-
1
]);
a
.
isParent
=!
0
;
c
<
0
?
a
[
e
]
=
a
[
e
].
concat
(
d
):(
b
=
[
c
,
0
].
concat
(
d
),
a
[
e
].
splice
.
apply
(
a
[
e
],
b
))},
addSelectedNode
:
function
(
b
,
a
){
var
c
=
h
.
getRoot
(
b
);
h
.
isSelectedNode
(
b
,
a
)
||
c
.
curSelectedList
.
push
(
a
)},
addCreatedNode
:
function
(
b
,
a
){(
b
.
callback
.
onNodeCreated
||
b
.
view
.
addDiyDom
)
&&
h
.
getRoot
(
b
).
createdNodes
.
push
(
a
)},
addZTreeTools
:
function
(
b
){
H
.
push
(
b
)},
exSetting
:
function
(
b
){
q
.
extend
(
!
0
,
O
,
b
)},
fixPIdKeyValue
:
function
(
b
,
a
){
b
.
data
.
simpleData
.
enable
&&
(
a
[
b
.
data
.
simpleData
.
pIdKey
]
=
a
.
parentTId
?
a
.
getParentNode
()[
b
.
data
.
simpleData
.
idKey
]:
b
.
data
.
simpleData
.
rootPId
)},
getAfterA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
E
.
length
;
d
<
e
;
d
++
)
E
[
d
].
apply
(
this
,
arguments
)},
getBeforeA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
D
.
length
;
d
<
e
;
d
++
)
D
[
d
].
apply
(
this
,
arguments
)},
getInnerAfterA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
G
.
length
;
d
<
e
;
d
++
)
G
[
d
].
apply
(
this
,
arguments
)},
getInnerBeforeA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
F
.
length
;
d
<
e
;
d
++
)
F
[
d
].
apply
(
this
,
arguments
)},
getCache
:
function
(
b
){
return
x
[
b
.
treeId
]},
getNodeIndex
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
;
return
-
1
},
getNextNode
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
g
?
null
:
d
[
c
][
e
+
1
];
return
null
},
getNodeByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
null
;
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
0
,
f
=
a
.
length
;
g
<
f
;
g
++
){
if
(
a
[
g
][
c
]
==
d
)
return
a
[
g
];
var
i
=
h
.
getNodeByParam
(
b
,
a
[
g
][
e
],
c
,
d
);
if
(
i
)
return
i
}
return
null
},
getNodeCache
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
=
x
[
b
.
treeId
].
nodes
[
h
.
getNodeCacheId
(
a
)];
return
c
?
c
:
null
},
getNodeName
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
name
]},
getNodePath
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
g
?
null
:
d
[
c
][
e
+
1
];
return
null
},
getNodeByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
null
;
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
0
,
m
=
a
.
length
;
g
<
m
;
g
++
){
if
(
a
[
g
][
c
]
==
d
)
return
a
[
g
];
var
f
=
h
.
getNodeByParam
(
b
,
a
[
g
][
e
],
c
,
d
);
if
(
f
)
return
f
}
return
null
},
getNodeCache
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
=
x
[
b
.
treeId
].
nodes
[
h
.
getNodeCacheId
(
a
)];
return
c
?
c
:
null
},
getNodeName
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
name
]},
getNodePath
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
;(
c
=
a
.
parentTId
?
a
.
getParentNode
().
getPath
():[])
&&
c
.
push
(
a
);
return
c
},
getNodeTitle
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
title
===
""
?
b
.
data
.
key
.
name
:
b
.
data
.
key
.
title
]},
getNodes
:
function
(
b
){
return
h
.
getRoot
(
b
)[
b
.
data
.
key
.
children
]},
getNodesByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
[];
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
[],
f
=
0
,
i
=
a
.
length
;
f
<
i
;
f
++
)
a
[
f
][
c
]
==
d
&&
g
.
push
(
a
[
f
]),
g
=
g
.
concat
(
h
.
getNodesByParam
(
b
,
a
[
f
][
e
],
c
,
d
));
return
g
},
getNodesByParamFuzzy
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
[];
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
[],
d
=
d
.
toLowerCase
(),
f
=
0
,
i
=
a
.
length
;
f
<
i
;
f
++
)
typeof
a
[
f
][
c
]
==
"
string
"
&&
a
[
f
][
c
].
toLowerCase
().
indexOf
(
d
)
>-
1
&&
g
.
push
(
a
[
f
]),
g
=
g
.
concat
(
h
.
getNodesByParamFuzzy
(
b
,
a
[
f
][
e
],
c
,
d
));
return
g
},
getNodesByFilter
:
function
(
b
,
a
,
c
,
d
,
e
){
if
(
!
a
)
return
d
?
null
:[];
for
(
var
g
=
b
.
data
.
key
.
children
,
f
=
d
?
null
:[],
i
=
0
,
n
=
a
.
length
;
i
<
n
;
i
++
){
if
(
j
.
apply
(
c
,[
a
[
i
],
e
],
!
1
)){
if
(
d
)
return
a
[
i
];
f
.
push
(
a
[
i
])}
var
k
=
h
.
getNodesByFilter
(
b
,
a
[
i
][
g
],
c
,
d
,
e
);
if
(
d
&&
k
)
return
k
;
f
=
d
?
k
:
f
.
concat
(
k
)}
return
f
},
getPreNode
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
;
e
<
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
0
?
null
:
d
[
c
][
e
-
1
];
return
null
},
getRoot
:
function
(
b
){
return
b
?
w
[
b
.
treeId
]:
null
},
getRoots
:
function
(){
return
w
},
getSetting
:
function
(
b
){
return
s
[
b
]},
getSettings
:
function
(){
return
s
},
getZTreeTools
:
function
(
b
){
return
(
b
=
this
.
getRoot
(
this
.
getSetting
(
b
)))?
b
.
treeTools
:
null
},
initCache
:
function
(
b
){
for
(
var
a
=
0
,
c
=
A
.
length
;
a
<
c
;
a
++
)
A
[
a
].
apply
(
this
,
arguments
)},
initNode
:
function
(
b
,
a
,
c
,
d
,
e
,
g
){
for
(
var
f
=
...
...
@@ -68,5 +68,5 @@ a,b,!0,l):(a.open=!b,i.switchNode(this.setting,a),l());return b},getNodes:functi
getNodesByFilter
:
function
(
a
,
b
,
c
,
f
){
b
=!!
b
;
return
!
a
||
typeof
a
!=
"
function
"
?
b
?
null
:[]:
h
.
getNodesByFilter
(
d
,
c
?
c
[
d
.
data
.
key
.
children
]:
h
.
getNodes
(
d
),
a
,
b
,
f
)},
getNodeIndex
:
function
(
a
){
if
(
!
a
)
return
null
;
for
(
var
b
=
d
.
data
.
key
.
children
,
c
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
d
),
f
=
0
,
i
=
c
[
b
].
length
;
f
<
i
;
f
++
)
if
(
c
[
b
][
f
]
==
a
)
return
f
;
return
-
1
},
getSelectedNodes
:
function
(){
for
(
var
a
=
[],
b
=
h
.
getRoot
(
d
).
curSelectedList
,
c
=
0
,
f
=
b
.
length
;
c
<
f
;
c
++
)
a
.
push
(
b
[
c
]);
return
a
},
isSelectedNode
:
function
(
a
){
return
h
.
isSelectedNode
(
d
,
a
)},
reAsyncChildNodes
:
function
(
a
,
b
,
c
){
if
(
this
.
setting
.
async
.
enable
){
var
j
=!
a
;
j
&&
(
a
=
h
.
getRoot
(
d
));
if
(
b
==
"
refresh
"
){
for
(
var
b
=
this
.
setting
.
data
.
key
.
children
,
l
=
0
,
q
=
a
[
b
]?
a
[
b
].
length
:
0
;
l
<
q
;
l
++
)
h
.
removeNodeCache
(
d
,
a
[
b
][
l
]);
h
.
removeSelectedNode
(
d
);
a
[
b
]
=
[];
j
?
this
.
setting
.
treeObj
.
empty
():
k
(
a
,
f
.
id
.
UL
,
d
).
empty
()}
i
.
asyncNode
(
this
.
setting
,
j
?
null
:
a
,
!!
c
)}},
refresh
:
function
(){
this
.
setting
.
treeObj
.
empty
();
var
a
=
h
.
getRoot
(
d
),
b
=
a
[
d
.
data
.
key
.
children
];
h
.
initRoot
(
d
);
a
[
d
.
data
.
key
.
children
]
=
b
;
h
.
initCache
(
d
);
i
.
createNodes
(
d
,
0
,
a
[
d
.
data
.
key
.
children
],
null
,
-
1
)},
removeChildNodes
:
function
(
a
){
if
(
!
a
)
return
null
;
var
b
=
a
[
d
.
data
.
key
.
children
];
i
.
removeChildNodes
(
d
,
a
);
return
b
?
b
:
null
},
removeNode
:
function
(
a
,
b
){
a
&&
(
b
=!!
b
,
b
&&
j
.
apply
(
d
.
callback
.
beforeRemove
,[
d
.
treeId
,
a
],
!
0
)
==!
1
||
(
i
.
removeNode
(
d
,
a
),
b
&&
this
.
setting
.
treeObj
.
trigger
(
f
.
event
.
REMOVE
,[
d
.
treeId
,
a
])))},
selectNode
:
function
(
a
,
b
,
c
){
function
f
(){
if
(
!
c
){
var
b
=
k
(
a
,
d
).
get
(
0
);
i
.
scrollIntoView
(
b
)}}
if
(
a
&&
j
.
uCanDo
(
d
)){
b
=
d
.
view
.
selectedMulti
&&
b
;
if
(
a
.
parentTId
)
i
.
expandCollapseParentNode
(
d
,
a
.
getParentNode
(),
!
0
,
!
1
,
f
);
else
try
{
k
(
a
,
d
).
focus
().
blur
()}
catch
(
h
){}
i
.
selectNode
(
d
,
a
,
b
)}},
transformTozTreeNodes
:
function
(
a
){
return
h
.
transformTozTreeFormat
(
d
,
a
)},
transformToArray
:
function
(
a
){
return
h
.
transformToArrayFormat
(
d
,
a
)},
updateNode
:
function
(
a
){
a
&&
k
(
a
,
d
).
get
(
0
)
&&
j
.
uCanDo
(
d
)
&&
(
i
.
setNodeName
(
d
,
a
),
i
.
setNodeTarget
(
d
,
a
),
i
.
setNodeUrl
(
d
,
a
),
i
.
setNodeLineIcos
(
d
,
a
),
i
.
setNodeFontCss
(
d
,
a
))}};
b
.
treeTools
=
c
;
h
.
setZTreeTools
(
d
,
c
);
b
[
a
]
&&
b
[
a
].
length
>
0
?
i
.
createNodes
(
d
,
0
,
b
[
a
],
null
,
-
1
):
d
.
async
.
enable
&&
d
.
async
.
url
&&
a
.
getParentNode
(),
!
0
,
!
1
,
f
);
else
if
(
!
c
)
try
{
k
(
a
,
d
).
focus
().
blur
()}
catch
(
h
){}
i
.
selectNode
(
d
,
a
,
b
)}},
transformTozTreeNodes
:
function
(
a
){
return
h
.
transformTozTreeFormat
(
d
,
a
)},
transformToArray
:
function
(
a
){
return
h
.
transformToArrayFormat
(
d
,
a
)},
updateNode
:
function
(
a
){
a
&&
k
(
a
,
d
).
get
(
0
)
&&
j
.
uCanDo
(
d
)
&&
(
i
.
setNodeName
(
d
,
a
),
i
.
setNodeTarget
(
d
,
a
),
i
.
setNodeUrl
(
d
,
a
),
i
.
setNodeLineIcos
(
d
,
a
),
i
.
setNodeFontCss
(
d
,
a
))}};
b
.
treeTools
=
c
;
h
.
setZTreeTools
(
d
,
c
);
b
[
a
]
&&
b
[
a
].
length
>
0
?
i
.
createNodes
(
d
,
0
,
b
[
a
],
null
,
-
1
):
d
.
async
.
enable
&&
d
.
async
.
url
&&
d
.
async
.
url
!==
""
&&
i
.
asyncNode
(
d
);
return
c
}};
var
P
=
q
.
fn
.
zTree
,
k
=
j
.
$
,
f
=
P
.
consts
})(
jQuery
);
js/jquery.ztree.all.js
浏览文件 @
d57b614b
/*
* JQuery zTree core v3.5.2
3
* JQuery zTree core v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -9,7 +9,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
$
){
var
settings
=
{},
roots
=
{},
caches
=
{},
...
...
@@ -1772,7 +1772,7 @@
addFlag
=
setting
.
view
.
selectedMulti
&&
addFlag
;
if
(
node
.
parentTId
)
{
view
.
expandCollapseParentNode
(
setting
,
node
.
getParentNode
(),
true
,
false
,
showNodeFocus
);
}
else
{
}
else
if
(
!
isSilent
)
{
try
{
$$
(
node
,
setting
).
focus
().
blur
();}
catch
(
e
){}
}
view
.
selectNode
(
setting
,
node
,
addFlag
);
...
...
@@ -1821,7 +1821,7 @@
consts
=
zt
.
consts
;
})(
jQuery
);
/*
* JQuery zTree excheck v3.5.2
3
* JQuery zTree excheck v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -1830,7 +1830,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
$
){
//default consts of excheck
...
...
@@ -2449,7 +2449,7 @@
}
})(
jQuery
);
/*
* JQuery zTree exedit v3.5.2
3
* JQuery zTree exedit v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -2458,7 +2458,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
$
){
//default consts of exedit
...
...
js/jquery.ztree.all.min.js
浏览文件 @
d57b614b
/*
* JQuery zTree core v3.5.2
3
* JQuery zTree core v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -9,11 +9,11 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
q
){
var
I
,
J
,
K
,
L
,
M
,
N
,
v
,
s
=
{},
w
=
{},
x
=
{},
O
=
{
treeId
:
""
,
treeObj
:
null
,
view
:{
addDiyDom
:
null
,
autoCancelSelected
:
!
0
,
dblClickExpand
:
!
0
,
expandSpeed
:
"
fast
"
,
fontCss
:{},
nameIsHTML
:
!
1
,
selectedMulti
:
!
0
,
showIcon
:
!
0
,
showLine
:
!
0
,
showTitle
:
!
0
,
txtSelectedEnable
:
!
1
},
data
:{
key
:{
children
:
"
children
"
,
name
:
"
name
"
,
title
:
""
,
url
:
"
url
"
,
icon
:
"
icon
"
},
simpleData
:{
enable
:
!
1
,
idKey
:
"
id
"
,
pIdKey
:
"
pId
"
,
rootPId
:
null
},
keep
:{
parent
:
!
1
,
leaf
:
!
1
}},
async
:{
enable
:
!
1
,
contentType
:
"
application/x-www-form-urlencoded
"
,
type
:
"
post
"
,
dataType
:
"
text
"
,
url
:
""
,
autoParam
:[],
otherParam
:[],
dataFilter
:
null
},
callback
:{
beforeAsync
:
null
,
beforeClick
:
null
,
beforeDblClick
:
null
,
beforeRightClick
:
null
,
beforeMouseDown
:
null
,
beforeMouseUp
:
null
,
beforeExpand
:
null
,
beforeCollapse
:
null
,
beforeRemove
:
null
,
onAsyncError
:
null
,
onAsyncSuccess
:
null
,
onNodeCreated
:
null
,
onClick
:
null
,
onDblClick
:
null
,
onRightClick
:
null
,
onMouseDown
:
null
,
onMouseUp
:
null
,
onExpand
:
null
,
onCollapse
:
null
,
onRemove
:
null
}},
y
=
[
function
(
b
){
var
a
=
b
.
treeObj
,
c
=
f
.
event
;
a
.
bind
(
c
.
NODECREATED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onNodeCreated
,
[
a
,
c
,
g
])});
a
.
bind
(
c
.
CLICK
,
function
(
a
,
c
,
g
,
m
,
h
){
j
.
apply
(
b
.
callback
.
onClick
,[
c
,
g
,
m
,
h
])});
a
.
bind
(
c
.
EXPAND
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onExpand
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
COLLAPSE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onCollapse
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
ASYNC_SUCCESS
,
function
(
a
,
c
,
g
,
h
){
j
.
apply
(
b
.
callback
.
onAsyncSuccess
,[
a
,
c
,
g
,
h
])});
a
.
bind
(
c
.
ASYNC_ERROR
,
function
(
a
,
c
,
g
,
h
,
f
,
i
){
j
.
apply
(
b
.
callback
.
onAsyncError
,[
a
,
c
,
g
,
h
,
f
,
i
])});
a
.
bind
(
c
.
REMOVE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onRemove
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
SELECTED
,
[
a
,
c
,
g
])});
a
.
bind
(
c
.
CLICK
,
function
(
a
,
c
,
g
,
m
,
h
){
j
.
apply
(
b
.
callback
.
onClick
,[
c
,
g
,
m
,
h
])});
a
.
bind
(
c
.
EXPAND
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onExpand
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
COLLAPSE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onCollapse
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
ASYNC_SUCCESS
,
function
(
a
,
c
,
g
,
m
){
j
.
apply
(
b
.
callback
.
onAsyncSuccess
,[
a
,
c
,
g
,
m
])});
a
.
bind
(
c
.
ASYNC_ERROR
,
function
(
a
,
c
,
g
,
m
,
h
,
f
){
j
.
apply
(
b
.
callback
.
onAsyncError
,[
a
,
c
,
g
,
m
,
h
,
f
])});
a
.
bind
(
c
.
REMOVE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onRemove
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
SELECTED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onSelected
,[
c
,
g
])});
a
.
bind
(
c
.
UNSELECTED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onUnSelected
,[
c
,
g
])})}],
z
=
[
function
(
b
){
var
a
=
f
.
event
;
b
.
treeObj
.
unbind
(
a
.
NODECREATED
).
unbind
(
a
.
CLICK
).
unbind
(
a
.
EXPAND
).
unbind
(
a
.
COLLAPSE
).
unbind
(
a
.
ASYNC_SUCCESS
).
unbind
(
a
.
ASYNC_ERROR
).
unbind
(
a
.
REMOVE
).
unbind
(
a
.
SELECTED
).
unbind
(
a
.
UNSELECTED
)}],
A
=
[
function
(
b
){
var
a
=
h
.
getCache
(
b
);
a
||
(
a
=
{},
h
.
setCache
(
b
,
a
));
a
.
nodes
=
[];
a
.
doms
=
[]}],
B
=
[
function
(
b
,
a
,
c
,
d
,
e
,
g
){
if
(
c
){
var
m
=
h
.
getRoot
(
b
),
f
=
b
.
data
.
key
.
children
;
c
.
level
=
a
;
c
.
tId
=
b
.
treeId
+
"
_
"
+
++
m
.
zId
;
c
.
parentTId
=
d
?
d
.
tId
:
null
;
c
.
open
=
typeof
c
.
open
==
"
string
"
?
j
.
eqs
(
c
.
open
,
"
true
"
):
!!
c
.
open
;
c
[
f
]
&&
c
[
f
].
length
>
0
?(
c
.
isParent
=!
0
,
c
.
zAsync
=!
0
):(
c
.
isParent
=
typeof
c
.
isParent
==
"
string
"
?
j
.
eqs
(
c
.
isParent
,
"
true
"
):
!!
c
.
isParent
,
c
.
open
=
c
.
isParent
&&!
b
.
async
.
enable
?
c
.
open
:
!
1
,
c
.
zAsync
=!
c
.
isParent
);
c
.
isFirstNode
=
e
;
c
.
isLastNode
=
g
;
c
.
getParentNode
=
function
(){
return
h
.
getNodeCache
(
b
,
c
.
parentTId
)};
c
.
getPreNode
=
function
(){
return
h
.
getPreNode
(
b
,
c
)};
c
.
getNextNode
=
function
(){
return
h
.
getNextNode
(
b
,
c
)};
c
.
getIndex
=
function
(){
return
h
.
getNodeIndex
(
b
,
c
)};
c
.
getPath
=
function
(){
return
h
.
getNodePath
(
b
,
c
)};
c
.
isAjaxing
=!
1
;
h
.
fixPIdKeyValue
(
b
,
c
)}}],
u
=
[
function
(
b
){
var
a
=
b
.
target
,
c
=
h
.
getSetting
(
b
.
data
.
treeId
),
d
=
""
,
e
=
null
,
g
=
""
,
m
=
""
,
i
=
null
,
n
=
null
,
k
=
null
;
if
(
j
.
eqs
(
b
.
type
,
"
mousedown
"
))
m
=
"
mousedown
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
mouseup
"
))
m
=
"
mouseup
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
contextmenu
"
))
m
=
"
contextmenu
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
click
"
))
if
(
j
.
eqs
(
a
.
tagName
,
"
span
"
)
&&
a
.
getAttribute
(
"
treeNode
"
+
f
.
id
.
SWITCH
)
!==
null
)
d
=
j
.
getNodeMainDom
(
a
).
id
,
...
...
@@ -23,7 +23,7 @@ D=[],E=[],F=[],G=[],H=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.get
b
):
u
.
push
(
b
)},
addInitRoot
:
function
(
b
){
C
.
push
(
b
)},
addNodesData
:
function
(
b
,
a
,
c
,
d
){
var
e
=
b
.
data
.
key
.
children
;
a
[
e
]?
c
>=
a
[
e
].
length
&&
(
c
=-
1
):(
a
[
e
]
=
[],
c
=-
1
);
if
(
a
[
e
].
length
>
0
&&
c
===
0
)
a
[
e
][
0
].
isFirstNode
=!
1
,
i
.
setNodeLineIcos
(
b
,
a
[
e
][
0
]);
else
if
(
a
[
e
].
length
>
0
&&
c
<
0
)
a
[
e
][
a
[
e
].
length
-
1
].
isLastNode
=!
1
,
i
.
setNodeLineIcos
(
b
,
a
[
e
][
a
[
e
].
length
-
1
]);
a
.
isParent
=!
0
;
c
<
0
?
a
[
e
]
=
a
[
e
].
concat
(
d
):(
b
=
[
c
,
0
].
concat
(
d
),
a
[
e
].
splice
.
apply
(
a
[
e
],
b
))},
addSelectedNode
:
function
(
b
,
a
){
var
c
=
h
.
getRoot
(
b
);
h
.
isSelectedNode
(
b
,
a
)
||
c
.
curSelectedList
.
push
(
a
)},
addCreatedNode
:
function
(
b
,
a
){(
b
.
callback
.
onNodeCreated
||
b
.
view
.
addDiyDom
)
&&
h
.
getRoot
(
b
).
createdNodes
.
push
(
a
)},
addZTreeTools
:
function
(
b
){
H
.
push
(
b
)},
exSetting
:
function
(
b
){
q
.
extend
(
!
0
,
O
,
b
)},
fixPIdKeyValue
:
function
(
b
,
a
){
b
.
data
.
simpleData
.
enable
&&
(
a
[
b
.
data
.
simpleData
.
pIdKey
]
=
a
.
parentTId
?
a
.
getParentNode
()[
b
.
data
.
simpleData
.
idKey
]:
b
.
data
.
simpleData
.
rootPId
)},
getAfterA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
E
.
length
;
d
<
e
;
d
++
)
E
[
d
].
apply
(
this
,
arguments
)},
getBeforeA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
D
.
length
;
d
<
e
;
d
++
)
D
[
d
].
apply
(
this
,
arguments
)},
getInnerAfterA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
G
.
length
;
d
<
e
;
d
++
)
G
[
d
].
apply
(
this
,
arguments
)},
getInnerBeforeA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
F
.
length
;
d
<
e
;
d
++
)
F
[
d
].
apply
(
this
,
arguments
)},
getCache
:
function
(
b
){
return
x
[
b
.
treeId
]},
getNodeIndex
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
;
return
-
1
},
getNextNode
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
g
?
null
:
d
[
c
][
e
+
1
];
return
null
},
getNodeByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
null
;
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
0
,
f
=
a
.
length
;
g
<
f
;
g
++
){
if
(
a
[
g
][
c
]
==
d
)
return
a
[
g
];
var
i
=
h
.
getNodeByParam
(
b
,
a
[
g
][
e
],
c
,
d
);
if
(
i
)
return
i
}
return
null
},
getNodeCache
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
=
x
[
b
.
treeId
].
nodes
[
h
.
getNodeCacheId
(
a
)];
return
c
?
c
:
null
},
getNodeName
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
name
]},
getNodePath
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
g
?
null
:
d
[
c
][
e
+
1
];
return
null
},
getNodeByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
null
;
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
0
,
m
=
a
.
length
;
g
<
m
;
g
++
){
if
(
a
[
g
][
c
]
==
d
)
return
a
[
g
];
var
f
=
h
.
getNodeByParam
(
b
,
a
[
g
][
e
],
c
,
d
);
if
(
f
)
return
f
}
return
null
},
getNodeCache
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
=
x
[
b
.
treeId
].
nodes
[
h
.
getNodeCacheId
(
a
)];
return
c
?
c
:
null
},
getNodeName
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
name
]},
getNodePath
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
;(
c
=
a
.
parentTId
?
a
.
getParentNode
().
getPath
():[])
&&
c
.
push
(
a
);
return
c
},
getNodeTitle
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
title
===
""
?
b
.
data
.
key
.
name
:
b
.
data
.
key
.
title
]},
getNodes
:
function
(
b
){
return
h
.
getRoot
(
b
)[
b
.
data
.
key
.
children
]},
getNodesByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
[];
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
[],
f
=
0
,
i
=
a
.
length
;
f
<
i
;
f
++
)
a
[
f
][
c
]
==
d
&&
g
.
push
(
a
[
f
]),
g
=
g
.
concat
(
h
.
getNodesByParam
(
b
,
a
[
f
][
e
],
c
,
d
));
return
g
},
getNodesByParamFuzzy
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
[];
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
[],
d
=
d
.
toLowerCase
(),
f
=
0
,
i
=
a
.
length
;
f
<
i
;
f
++
)
typeof
a
[
f
][
c
]
==
"
string
"
&&
a
[
f
][
c
].
toLowerCase
().
indexOf
(
d
)
>-
1
&&
g
.
push
(
a
[
f
]),
g
=
g
.
concat
(
h
.
getNodesByParamFuzzy
(
b
,
a
[
f
][
e
],
c
,
d
));
return
g
},
getNodesByFilter
:
function
(
b
,
a
,
c
,
d
,
e
){
if
(
!
a
)
return
d
?
null
:[];
for
(
var
g
=
b
.
data
.
key
.
children
,
f
=
d
?
null
:[],
i
=
0
,
n
=
a
.
length
;
i
<
n
;
i
++
){
if
(
j
.
apply
(
c
,[
a
[
i
],
e
],
!
1
)){
if
(
d
)
return
a
[
i
];
f
.
push
(
a
[
i
])}
var
k
=
h
.
getNodesByFilter
(
b
,
a
[
i
][
g
],
c
,
d
,
e
);
if
(
d
&&
k
)
return
k
;
f
=
d
?
k
:
f
.
concat
(
k
)}
return
f
},
getPreNode
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
;
e
<
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
0
?
null
:
d
[
c
][
e
-
1
];
return
null
},
getRoot
:
function
(
b
){
return
b
?
w
[
b
.
treeId
]:
null
},
getRoots
:
function
(){
return
w
},
getSetting
:
function
(
b
){
return
s
[
b
]},
getSettings
:
function
(){
return
s
},
getZTreeTools
:
function
(
b
){
return
(
b
=
this
.
getRoot
(
this
.
getSetting
(
b
)))?
b
.
treeTools
:
null
},
initCache
:
function
(
b
){
for
(
var
a
=
0
,
c
=
A
.
length
;
a
<
c
;
a
++
)
A
[
a
].
apply
(
this
,
arguments
)},
initNode
:
function
(
b
,
a
,
c
,
d
,
e
,
g
){
for
(
var
f
=
...
...
@@ -69,11 +69,11 @@ a,b,!0,l):(a.open=!b,i.switchNode(this.setting,a),l());return b},getNodes:functi
getNodesByFilter
:
function
(
a
,
b
,
c
,
f
){
b
=!!
b
;
return
!
a
||
typeof
a
!=
"
function
"
?
b
?
null
:[]:
h
.
getNodesByFilter
(
d
,
c
?
c
[
d
.
data
.
key
.
children
]:
h
.
getNodes
(
d
),
a
,
b
,
f
)},
getNodeIndex
:
function
(
a
){
if
(
!
a
)
return
null
;
for
(
var
b
=
d
.
data
.
key
.
children
,
c
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
d
),
f
=
0
,
i
=
c
[
b
].
length
;
f
<
i
;
f
++
)
if
(
c
[
b
][
f
]
==
a
)
return
f
;
return
-
1
},
getSelectedNodes
:
function
(){
for
(
var
a
=
[],
b
=
h
.
getRoot
(
d
).
curSelectedList
,
c
=
0
,
f
=
b
.
length
;
c
<
f
;
c
++
)
a
.
push
(
b
[
c
]);
return
a
},
isSelectedNode
:
function
(
a
){
return
h
.
isSelectedNode
(
d
,
a
)},
reAsyncChildNodes
:
function
(
a
,
b
,
c
){
if
(
this
.
setting
.
async
.
enable
){
var
j
=!
a
;
j
&&
(
a
=
h
.
getRoot
(
d
));
if
(
b
==
"
refresh
"
){
for
(
var
b
=
this
.
setting
.
data
.
key
.
children
,
l
=
0
,
q
=
a
[
b
]?
a
[
b
].
length
:
0
;
l
<
q
;
l
++
)
h
.
removeNodeCache
(
d
,
a
[
b
][
l
]);
h
.
removeSelectedNode
(
d
);
a
[
b
]
=
[];
j
?
this
.
setting
.
treeObj
.
empty
():
k
(
a
,
f
.
id
.
UL
,
d
).
empty
()}
i
.
asyncNode
(
this
.
setting
,
j
?
null
:
a
,
!!
c
)}},
refresh
:
function
(){
this
.
setting
.
treeObj
.
empty
();
var
a
=
h
.
getRoot
(
d
),
b
=
a
[
d
.
data
.
key
.
children
];
h
.
initRoot
(
d
);
a
[
d
.
data
.
key
.
children
]
=
b
;
h
.
initCache
(
d
);
i
.
createNodes
(
d
,
0
,
a
[
d
.
data
.
key
.
children
],
null
,
-
1
)},
removeChildNodes
:
function
(
a
){
if
(
!
a
)
return
null
;
var
b
=
a
[
d
.
data
.
key
.
children
];
i
.
removeChildNodes
(
d
,
a
);
return
b
?
b
:
null
},
removeNode
:
function
(
a
,
b
){
a
&&
(
b
=!!
b
,
b
&&
j
.
apply
(
d
.
callback
.
beforeRemove
,[
d
.
treeId
,
a
],
!
0
)
==!
1
||
(
i
.
removeNode
(
d
,
a
),
b
&&
this
.
setting
.
treeObj
.
trigger
(
f
.
event
.
REMOVE
,[
d
.
treeId
,
a
])))},
selectNode
:
function
(
a
,
b
,
c
){
function
f
(){
if
(
!
c
){
var
b
=
k
(
a
,
d
).
get
(
0
);
i
.
scrollIntoView
(
b
)}}
if
(
a
&&
j
.
uCanDo
(
d
)){
b
=
d
.
view
.
selectedMulti
&&
b
;
if
(
a
.
parentTId
)
i
.
expandCollapseParentNode
(
d
,
a
.
getParentNode
(),
!
0
,
!
1
,
f
);
else
try
{
k
(
a
,
d
).
focus
().
blur
()}
catch
(
h
){}
i
.
selectNode
(
d
,
a
,
b
)}},
transformTozTreeNodes
:
function
(
a
){
return
h
.
transformTozTreeFormat
(
d
,
a
)},
transformToArray
:
function
(
a
){
return
h
.
transformToArrayFormat
(
d
,
a
)},
updateNode
:
function
(
a
){
a
&&
k
(
a
,
d
).
get
(
0
)
&&
j
.
uCanDo
(
d
)
&&
(
i
.
setNodeName
(
d
,
a
),
i
.
setNodeTarget
(
d
,
a
),
i
.
setNodeUrl
(
d
,
a
),
i
.
setNodeLineIcos
(
d
,
a
),
i
.
setNodeFontCss
(
d
,
a
))}};
b
.
treeTools
=
c
;
h
.
setZTreeTools
(
d
,
c
);
b
[
a
]
&&
b
[
a
].
length
>
0
?
i
.
createNodes
(
d
,
0
,
b
[
a
],
null
,
-
1
):
d
.
async
.
enable
&&
d
.
async
.
url
&&
a
.
getParentNode
(),
!
0
,
!
1
,
f
);
else
if
(
!
c
)
try
{
k
(
a
,
d
).
focus
().
blur
()}
catch
(
h
){}
i
.
selectNode
(
d
,
a
,
b
)}},
transformTozTreeNodes
:
function
(
a
){
return
h
.
transformTozTreeFormat
(
d
,
a
)},
transformToArray
:
function
(
a
){
return
h
.
transformToArrayFormat
(
d
,
a
)},
updateNode
:
function
(
a
){
a
&&
k
(
a
,
d
).
get
(
0
)
&&
j
.
uCanDo
(
d
)
&&
(
i
.
setNodeName
(
d
,
a
),
i
.
setNodeTarget
(
d
,
a
),
i
.
setNodeUrl
(
d
,
a
),
i
.
setNodeLineIcos
(
d
,
a
),
i
.
setNodeFontCss
(
d
,
a
))}};
b
.
treeTools
=
c
;
h
.
setZTreeTools
(
d
,
c
);
b
[
a
]
&&
b
[
a
].
length
>
0
?
i
.
createNodes
(
d
,
0
,
b
[
a
],
null
,
-
1
):
d
.
async
.
enable
&&
d
.
async
.
url
&&
d
.
async
.
url
!==
""
&&
i
.
asyncNode
(
d
);
return
c
}};
var
P
=
q
.
fn
.
zTree
,
k
=
j
.
$
,
f
=
P
.
consts
})(
jQuery
);
/*
* JQuery zTree excheck v3.5.2
3
* JQuery zTree excheck v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -82,7 +82,7 @@ d.async.url!==""&&i.asyncNode(d);return c}};var P=q.fn.zTree,k=j.$,f=P.consts})(
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
m
){
var
p
,
q
,
r
,
o
=
{
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
"
}},
v
=
{
check
:{
enable
:
!
1
,
autoCheckTrigger
:
!
1
,
chkStyle
:
o
.
checkbox
.
STYLE
,
nocheckInherit
:
!
1
,
chkDisabledInherit
:
!
1
,
radioType
:
o
.
radio
.
TYPE_LEVEL
,
chkboxType
:{
Y
:
"
ps
"
,
N
:
"
ps
"
}},
data
:{
key
:{
checked
:
"
checked
"
}},
callback
:{
beforeCheck
:
null
,
onCheck
:
null
}};
p
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
b
.
data
.
key
.
checked
;
if
(
k
.
apply
(
b
.
callback
.
beforeCheck
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
!
0
;
a
[
d
]
=!
a
[
d
];
e
.
checkNodeRelation
(
b
,
a
);
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
e
.
setChkClass
(
b
,
d
,
a
);
e
.
repairParentChkClassWithSelf
(
b
,
a
);
b
.
treeObj
.
trigger
(
j
.
event
.
CHECK
,[
c
,
b
.
treeId
,
a
]);
return
!
0
};
q
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
a
.
check_Focus
=!
0
;
e
.
setChkClass
(
b
,
d
,
a
);
return
!
0
};
r
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===
...
...
@@ -108,7 +108,7 @@ j.radio.STYLE)&&e.checkNodeRelation(this.setting,c);e.setChkClass(this.setting,i
d
&&
g
.
makeChkFlag
(
c
,
d
);
return
f
}})(
jQuery
);
/*
* JQuery zTree exedit v3.5.2
3
* JQuery zTree exedit v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -117,7 +117,7 @@ d&&g.makeChkFlag(c,d);return f}})(jQuery);
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
v
){
var
J
=
{
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
"
}},
x
=
{
onHoverOverNode
:
function
(
b
,
a
){
var
c
=
m
.
getSetting
(
b
.
data
.
treeId
),
d
=
m
.
getRoot
(
c
);
if
(
d
.
curHoverNode
!=
a
)
x
.
onHoverOutNode
(
b
);
d
.
curHoverNode
=
a
;
f
.
addHoverDom
(
c
,
a
)},
onHoverOutNode
:
function
(
b
){
var
b
=
m
.
getSetting
(
b
.
data
.
treeId
),
a
=
m
.
getRoot
(
b
);
if
(
a
.
curHoverNode
&&!
m
.
isSelectedNode
(
b
,
a
.
curHoverNode
))
f
.
removeTreeDom
(
b
,
a
.
curHoverNode
),
a
.
curHoverNode
=
null
},
onMousedownNode
:
function
(
b
,
a
){
function
c
(
b
){
if
(
B
.
dragFlag
==
0
&&
Math
.
abs
(
O
-
b
.
clientX
)
<
e
.
edit
.
drag
.
minMoveSize
&&
Math
.
abs
(
P
-
b
.
clientY
)
<
e
.
edit
.
drag
.
minMoveSize
)
return
!
0
;
var
a
,
c
,
n
,
k
,
i
;
i
=
e
.
data
.
key
.
children
;
M
.
css
(
"
cursor
"
,
"
pointer
"
);
if
(
B
.
dragFlag
==
0
){
if
(
g
.
apply
(
e
.
callback
.
beforeDrag
,[
e
.
treeId
,
l
],
!
0
)
==!
1
)
return
r
(
b
),
!
0
;
for
(
a
=
0
,
c
=
l
.
length
;
a
<
c
;
a
++
){
if
(
a
==
0
)
B
.
dragNodeShowBefore
=
...
...
js/jquery.ztree.core.js
浏览文件 @
d57b614b
/*
* JQuery zTree core v3.5.2
3
* JQuery zTree core v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
$
){
var
settings
=
{},
roots
=
{},
caches
=
{},
...
...
@@ -1771,7 +1771,7 @@
addFlag
=
setting
.
view
.
selectedMulti
&&
addFlag
;
if
(
node
.
parentTId
)
{
view
.
expandCollapseParentNode
(
setting
,
node
.
getParentNode
(),
true
,
false
,
showNodeFocus
);
}
else
{
}
else
if
(
!
isSilent
)
{
try
{
$$
(
node
,
setting
).
focus
().
blur
();}
catch
(
e
){}
}
view
.
selectNode
(
setting
,
node
,
addFlag
);
...
...
js/jquery.ztree.core.min.js
浏览文件 @
d57b614b
/*
* JQuery zTree core v3.5.2
3
* JQuery zTree core v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,11 +8,11 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
q
){
var
I
,
J
,
K
,
L
,
M
,
N
,
v
,
s
=
{},
w
=
{},
x
=
{},
O
=
{
treeId
:
""
,
treeObj
:
null
,
view
:{
addDiyDom
:
null
,
autoCancelSelected
:
!
0
,
dblClickExpand
:
!
0
,
expandSpeed
:
"
fast
"
,
fontCss
:{},
nameIsHTML
:
!
1
,
selectedMulti
:
!
0
,
showIcon
:
!
0
,
showLine
:
!
0
,
showTitle
:
!
0
,
txtSelectedEnable
:
!
1
},
data
:{
key
:{
children
:
"
children
"
,
name
:
"
name
"
,
title
:
""
,
url
:
"
url
"
,
icon
:
"
icon
"
},
simpleData
:{
enable
:
!
1
,
idKey
:
"
id
"
,
pIdKey
:
"
pId
"
,
rootPId
:
null
},
keep
:{
parent
:
!
1
,
leaf
:
!
1
}},
async
:{
enable
:
!
1
,
contentType
:
"
application/x-www-form-urlencoded
"
,
type
:
"
post
"
,
dataType
:
"
text
"
,
url
:
""
,
autoParam
:[],
otherParam
:[],
dataFilter
:
null
},
callback
:{
beforeAsync
:
null
,
beforeClick
:
null
,
beforeDblClick
:
null
,
beforeRightClick
:
null
,
beforeMouseDown
:
null
,
beforeMouseUp
:
null
,
beforeExpand
:
null
,
beforeCollapse
:
null
,
beforeRemove
:
null
,
onAsyncError
:
null
,
onAsyncSuccess
:
null
,
onNodeCreated
:
null
,
onClick
:
null
,
onDblClick
:
null
,
onRightClick
:
null
,
onMouseDown
:
null
,
onMouseUp
:
null
,
onExpand
:
null
,
onCollapse
:
null
,
onRemove
:
null
}},
y
=
[
function
(
b
){
var
a
=
b
.
treeObj
,
c
=
f
.
event
;
a
.
bind
(
c
.
NODECREATED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onNodeCreated
,
[
a
,
c
,
g
])});
a
.
bind
(
c
.
CLICK
,
function
(
a
,
c
,
g
,
m
,
h
){
j
.
apply
(
b
.
callback
.
onClick
,[
c
,
g
,
m
,
h
])});
a
.
bind
(
c
.
EXPAND
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onExpand
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
COLLAPSE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onCollapse
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
ASYNC_SUCCESS
,
function
(
a
,
c
,
g
,
h
){
j
.
apply
(
b
.
callback
.
onAsyncSuccess
,[
a
,
c
,
g
,
h
])});
a
.
bind
(
c
.
ASYNC_ERROR
,
function
(
a
,
c
,
g
,
h
,
f
,
i
){
j
.
apply
(
b
.
callback
.
onAsyncError
,[
a
,
c
,
g
,
h
,
f
,
i
])});
a
.
bind
(
c
.
REMOVE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onRemove
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
SELECTED
,
[
a
,
c
,
g
])});
a
.
bind
(
c
.
CLICK
,
function
(
a
,
c
,
g
,
m
,
h
){
j
.
apply
(
b
.
callback
.
onClick
,[
c
,
g
,
m
,
h
])});
a
.
bind
(
c
.
EXPAND
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onExpand
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
COLLAPSE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onCollapse
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
ASYNC_SUCCESS
,
function
(
a
,
c
,
g
,
m
){
j
.
apply
(
b
.
callback
.
onAsyncSuccess
,[
a
,
c
,
g
,
m
])});
a
.
bind
(
c
.
ASYNC_ERROR
,
function
(
a
,
c
,
g
,
m
,
h
,
f
){
j
.
apply
(
b
.
callback
.
onAsyncError
,[
a
,
c
,
g
,
m
,
h
,
f
])});
a
.
bind
(
c
.
REMOVE
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onRemove
,[
a
,
c
,
g
])});
a
.
bind
(
c
.
SELECTED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onSelected
,[
c
,
g
])});
a
.
bind
(
c
.
UNSELECTED
,
function
(
a
,
c
,
g
){
j
.
apply
(
b
.
callback
.
onUnSelected
,[
c
,
g
])})}],
z
=
[
function
(
b
){
var
a
=
f
.
event
;
b
.
treeObj
.
unbind
(
a
.
NODECREATED
).
unbind
(
a
.
CLICK
).
unbind
(
a
.
EXPAND
).
unbind
(
a
.
COLLAPSE
).
unbind
(
a
.
ASYNC_SUCCESS
).
unbind
(
a
.
ASYNC_ERROR
).
unbind
(
a
.
REMOVE
).
unbind
(
a
.
SELECTED
).
unbind
(
a
.
UNSELECTED
)}],
A
=
[
function
(
b
){
var
a
=
h
.
getCache
(
b
);
a
||
(
a
=
{},
h
.
setCache
(
b
,
a
));
a
.
nodes
=
[];
a
.
doms
=
[]}],
B
=
[
function
(
b
,
a
,
c
,
d
,
e
,
g
){
if
(
c
){
var
m
=
h
.
getRoot
(
b
),
f
=
b
.
data
.
key
.
children
;
c
.
level
=
a
;
c
.
tId
=
b
.
treeId
+
"
_
"
+
++
m
.
zId
;
c
.
parentTId
=
d
?
d
.
tId
:
null
;
c
.
open
=
typeof
c
.
open
==
"
string
"
?
j
.
eqs
(
c
.
open
,
"
true
"
):
!!
c
.
open
;
c
[
f
]
&&
c
[
f
].
length
>
0
?(
c
.
isParent
=!
0
,
c
.
zAsync
=!
0
):(
c
.
isParent
=
typeof
c
.
isParent
==
"
string
"
?
j
.
eqs
(
c
.
isParent
,
"
true
"
):
!!
c
.
isParent
,
c
.
open
=
c
.
isParent
&&!
b
.
async
.
enable
?
c
.
open
:
!
1
,
c
.
zAsync
=!
c
.
isParent
);
c
.
isFirstNode
=
e
;
c
.
isLastNode
=
g
;
c
.
getParentNode
=
function
(){
return
h
.
getNodeCache
(
b
,
c
.
parentTId
)};
c
.
getPreNode
=
function
(){
return
h
.
getPreNode
(
b
,
c
)};
c
.
getNextNode
=
function
(){
return
h
.
getNextNode
(
b
,
c
)};
c
.
getIndex
=
function
(){
return
h
.
getNodeIndex
(
b
,
c
)};
c
.
getPath
=
function
(){
return
h
.
getNodePath
(
b
,
c
)};
c
.
isAjaxing
=!
1
;
h
.
fixPIdKeyValue
(
b
,
c
)}}],
u
=
[
function
(
b
){
var
a
=
b
.
target
,
c
=
h
.
getSetting
(
b
.
data
.
treeId
),
d
=
""
,
e
=
null
,
g
=
""
,
m
=
""
,
i
=
null
,
n
=
null
,
k
=
null
;
if
(
j
.
eqs
(
b
.
type
,
"
mousedown
"
))
m
=
"
mousedown
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
mouseup
"
))
m
=
"
mouseup
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
contextmenu
"
))
m
=
"
contextmenu
"
;
else
if
(
j
.
eqs
(
b
.
type
,
"
click
"
))
if
(
j
.
eqs
(
a
.
tagName
,
"
span
"
)
&&
a
.
getAttribute
(
"
treeNode
"
+
f
.
id
.
SWITCH
)
!==
null
)
d
=
j
.
getNodeMainDom
(
a
).
id
,
...
...
@@ -22,7 +22,7 @@ D=[],E=[],F=[],G=[],H=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.get
b
):
u
.
push
(
b
)},
addInitRoot
:
function
(
b
){
C
.
push
(
b
)},
addNodesData
:
function
(
b
,
a
,
c
,
d
){
var
e
=
b
.
data
.
key
.
children
;
a
[
e
]?
c
>=
a
[
e
].
length
&&
(
c
=-
1
):(
a
[
e
]
=
[],
c
=-
1
);
if
(
a
[
e
].
length
>
0
&&
c
===
0
)
a
[
e
][
0
].
isFirstNode
=!
1
,
i
.
setNodeLineIcos
(
b
,
a
[
e
][
0
]);
else
if
(
a
[
e
].
length
>
0
&&
c
<
0
)
a
[
e
][
a
[
e
].
length
-
1
].
isLastNode
=!
1
,
i
.
setNodeLineIcos
(
b
,
a
[
e
][
a
[
e
].
length
-
1
]);
a
.
isParent
=!
0
;
c
<
0
?
a
[
e
]
=
a
[
e
].
concat
(
d
):(
b
=
[
c
,
0
].
concat
(
d
),
a
[
e
].
splice
.
apply
(
a
[
e
],
b
))},
addSelectedNode
:
function
(
b
,
a
){
var
c
=
h
.
getRoot
(
b
);
h
.
isSelectedNode
(
b
,
a
)
||
c
.
curSelectedList
.
push
(
a
)},
addCreatedNode
:
function
(
b
,
a
){(
b
.
callback
.
onNodeCreated
||
b
.
view
.
addDiyDom
)
&&
h
.
getRoot
(
b
).
createdNodes
.
push
(
a
)},
addZTreeTools
:
function
(
b
){
H
.
push
(
b
)},
exSetting
:
function
(
b
){
q
.
extend
(
!
0
,
O
,
b
)},
fixPIdKeyValue
:
function
(
b
,
a
){
b
.
data
.
simpleData
.
enable
&&
(
a
[
b
.
data
.
simpleData
.
pIdKey
]
=
a
.
parentTId
?
a
.
getParentNode
()[
b
.
data
.
simpleData
.
idKey
]:
b
.
data
.
simpleData
.
rootPId
)},
getAfterA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
E
.
length
;
d
<
e
;
d
++
)
E
[
d
].
apply
(
this
,
arguments
)},
getBeforeA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
D
.
length
;
d
<
e
;
d
++
)
D
[
d
].
apply
(
this
,
arguments
)},
getInnerAfterA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
G
.
length
;
d
<
e
;
d
++
)
G
[
d
].
apply
(
this
,
arguments
)},
getInnerBeforeA
:
function
(
b
,
a
,
c
){
for
(
var
d
=
0
,
e
=
F
.
length
;
d
<
e
;
d
++
)
F
[
d
].
apply
(
this
,
arguments
)},
getCache
:
function
(
b
){
return
x
[
b
.
treeId
]},
getNodeIndex
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
;
return
-
1
},
getNextNode
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
g
?
null
:
d
[
c
][
e
+
1
];
return
null
},
getNodeByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
null
;
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
0
,
f
=
a
.
length
;
g
<
f
;
g
++
){
if
(
a
[
g
][
c
]
==
d
)
return
a
[
g
];
var
i
=
h
.
getNodeByParam
(
b
,
a
[
g
][
e
],
c
,
d
);
if
(
i
)
return
i
}
return
null
},
getNodeCache
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
=
x
[
b
.
treeId
].
nodes
[
h
.
getNodeCacheId
(
a
)];
return
c
?
c
:
null
},
getNodeName
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
name
]},
getNodePath
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
-
1
;
e
<=
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
g
?
null
:
d
[
c
][
e
+
1
];
return
null
},
getNodeByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
null
;
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
0
,
m
=
a
.
length
;
g
<
m
;
g
++
){
if
(
a
[
g
][
c
]
==
d
)
return
a
[
g
];
var
f
=
h
.
getNodeByParam
(
b
,
a
[
g
][
e
],
c
,
d
);
if
(
f
)
return
f
}
return
null
},
getNodeCache
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
=
x
[
b
.
treeId
].
nodes
[
h
.
getNodeCacheId
(
a
)];
return
c
?
c
:
null
},
getNodeName
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
name
]},
getNodePath
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
var
c
;(
c
=
a
.
parentTId
?
a
.
getParentNode
().
getPath
():[])
&&
c
.
push
(
a
);
return
c
},
getNodeTitle
:
function
(
b
,
a
){
return
""
+
a
[
b
.
data
.
key
.
title
===
""
?
b
.
data
.
key
.
name
:
b
.
data
.
key
.
title
]},
getNodes
:
function
(
b
){
return
h
.
getRoot
(
b
)[
b
.
data
.
key
.
children
]},
getNodesByParam
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
[];
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
[],
f
=
0
,
i
=
a
.
length
;
f
<
i
;
f
++
)
a
[
f
][
c
]
==
d
&&
g
.
push
(
a
[
f
]),
g
=
g
.
concat
(
h
.
getNodesByParam
(
b
,
a
[
f
][
e
],
c
,
d
));
return
g
},
getNodesByParamFuzzy
:
function
(
b
,
a
,
c
,
d
){
if
(
!
a
||!
c
)
return
[];
for
(
var
e
=
b
.
data
.
key
.
children
,
g
=
[],
d
=
d
.
toLowerCase
(),
f
=
0
,
i
=
a
.
length
;
f
<
i
;
f
++
)
typeof
a
[
f
][
c
]
==
"
string
"
&&
a
[
f
][
c
].
toLowerCase
().
indexOf
(
d
)
>-
1
&&
g
.
push
(
a
[
f
]),
g
=
g
.
concat
(
h
.
getNodesByParamFuzzy
(
b
,
a
[
f
][
e
],
c
,
d
));
return
g
},
getNodesByFilter
:
function
(
b
,
a
,
c
,
d
,
e
){
if
(
!
a
)
return
d
?
null
:[];
for
(
var
g
=
b
.
data
.
key
.
children
,
f
=
d
?
null
:[],
i
=
0
,
n
=
a
.
length
;
i
<
n
;
i
++
){
if
(
j
.
apply
(
c
,[
a
[
i
],
e
],
!
1
)){
if
(
d
)
return
a
[
i
];
f
.
push
(
a
[
i
])}
var
k
=
h
.
getNodesByFilter
(
b
,
a
[
i
][
g
],
c
,
d
,
e
);
if
(
d
&&
k
)
return
k
;
f
=
d
?
k
:
f
.
concat
(
k
)}
return
f
},
getPreNode
:
function
(
b
,
a
){
if
(
!
a
)
return
null
;
for
(
var
c
=
b
.
data
.
key
.
children
,
d
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
b
),
e
=
0
,
g
=
d
[
c
].
length
;
e
<
g
;
e
++
)
if
(
d
[
c
][
e
]
===
a
)
return
e
==
0
?
null
:
d
[
c
][
e
-
1
];
return
null
},
getRoot
:
function
(
b
){
return
b
?
w
[
b
.
treeId
]:
null
},
getRoots
:
function
(){
return
w
},
getSetting
:
function
(
b
){
return
s
[
b
]},
getSettings
:
function
(){
return
s
},
getZTreeTools
:
function
(
b
){
return
(
b
=
this
.
getRoot
(
this
.
getSetting
(
b
)))?
b
.
treeTools
:
null
},
initCache
:
function
(
b
){
for
(
var
a
=
0
,
c
=
A
.
length
;
a
<
c
;
a
++
)
A
[
a
].
apply
(
this
,
arguments
)},
initNode
:
function
(
b
,
a
,
c
,
d
,
e
,
g
){
for
(
var
f
=
...
...
@@ -68,5 +68,5 @@ a,b,!0,l):(a.open=!b,i.switchNode(this.setting,a),l());return b},getNodes:functi
getNodesByFilter
:
function
(
a
,
b
,
c
,
f
){
b
=!!
b
;
return
!
a
||
typeof
a
!=
"
function
"
?
b
?
null
:[]:
h
.
getNodesByFilter
(
d
,
c
?
c
[
d
.
data
.
key
.
children
]:
h
.
getNodes
(
d
),
a
,
b
,
f
)},
getNodeIndex
:
function
(
a
){
if
(
!
a
)
return
null
;
for
(
var
b
=
d
.
data
.
key
.
children
,
c
=
a
.
parentTId
?
a
.
getParentNode
():
h
.
getRoot
(
d
),
f
=
0
,
i
=
c
[
b
].
length
;
f
<
i
;
f
++
)
if
(
c
[
b
][
f
]
==
a
)
return
f
;
return
-
1
},
getSelectedNodes
:
function
(){
for
(
var
a
=
[],
b
=
h
.
getRoot
(
d
).
curSelectedList
,
c
=
0
,
f
=
b
.
length
;
c
<
f
;
c
++
)
a
.
push
(
b
[
c
]);
return
a
},
isSelectedNode
:
function
(
a
){
return
h
.
isSelectedNode
(
d
,
a
)},
reAsyncChildNodes
:
function
(
a
,
b
,
c
){
if
(
this
.
setting
.
async
.
enable
){
var
j
=!
a
;
j
&&
(
a
=
h
.
getRoot
(
d
));
if
(
b
==
"
refresh
"
){
for
(
var
b
=
this
.
setting
.
data
.
key
.
children
,
l
=
0
,
q
=
a
[
b
]?
a
[
b
].
length
:
0
;
l
<
q
;
l
++
)
h
.
removeNodeCache
(
d
,
a
[
b
][
l
]);
h
.
removeSelectedNode
(
d
);
a
[
b
]
=
[];
j
?
this
.
setting
.
treeObj
.
empty
():
k
(
a
,
f
.
id
.
UL
,
d
).
empty
()}
i
.
asyncNode
(
this
.
setting
,
j
?
null
:
a
,
!!
c
)}},
refresh
:
function
(){
this
.
setting
.
treeObj
.
empty
();
var
a
=
h
.
getRoot
(
d
),
b
=
a
[
d
.
data
.
key
.
children
];
h
.
initRoot
(
d
);
a
[
d
.
data
.
key
.
children
]
=
b
;
h
.
initCache
(
d
);
i
.
createNodes
(
d
,
0
,
a
[
d
.
data
.
key
.
children
],
null
,
-
1
)},
removeChildNodes
:
function
(
a
){
if
(
!
a
)
return
null
;
var
b
=
a
[
d
.
data
.
key
.
children
];
i
.
removeChildNodes
(
d
,
a
);
return
b
?
b
:
null
},
removeNode
:
function
(
a
,
b
){
a
&&
(
b
=!!
b
,
b
&&
j
.
apply
(
d
.
callback
.
beforeRemove
,[
d
.
treeId
,
a
],
!
0
)
==!
1
||
(
i
.
removeNode
(
d
,
a
),
b
&&
this
.
setting
.
treeObj
.
trigger
(
f
.
event
.
REMOVE
,[
d
.
treeId
,
a
])))},
selectNode
:
function
(
a
,
b
,
c
){
function
f
(){
if
(
!
c
){
var
b
=
k
(
a
,
d
).
get
(
0
);
i
.
scrollIntoView
(
b
)}}
if
(
a
&&
j
.
uCanDo
(
d
)){
b
=
d
.
view
.
selectedMulti
&&
b
;
if
(
a
.
parentTId
)
i
.
expandCollapseParentNode
(
d
,
a
.
getParentNode
(),
!
0
,
!
1
,
f
);
else
try
{
k
(
a
,
d
).
focus
().
blur
()}
catch
(
h
){}
i
.
selectNode
(
d
,
a
,
b
)}},
transformTozTreeNodes
:
function
(
a
){
return
h
.
transformTozTreeFormat
(
d
,
a
)},
transformToArray
:
function
(
a
){
return
h
.
transformToArrayFormat
(
d
,
a
)},
updateNode
:
function
(
a
){
a
&&
k
(
a
,
d
).
get
(
0
)
&&
j
.
uCanDo
(
d
)
&&
(
i
.
setNodeName
(
d
,
a
),
i
.
setNodeTarget
(
d
,
a
),
i
.
setNodeUrl
(
d
,
a
),
i
.
setNodeLineIcos
(
d
,
a
),
i
.
setNodeFontCss
(
d
,
a
))}};
b
.
treeTools
=
c
;
h
.
setZTreeTools
(
d
,
c
);
b
[
a
]
&&
b
[
a
].
length
>
0
?
i
.
createNodes
(
d
,
0
,
b
[
a
],
null
,
-
1
):
d
.
async
.
enable
&&
d
.
async
.
url
&&
a
.
getParentNode
(),
!
0
,
!
1
,
f
);
else
if
(
!
c
)
try
{
k
(
a
,
d
).
focus
().
blur
()}
catch
(
h
){}
i
.
selectNode
(
d
,
a
,
b
)}},
transformTozTreeNodes
:
function
(
a
){
return
h
.
transformTozTreeFormat
(
d
,
a
)},
transformToArray
:
function
(
a
){
return
h
.
transformToArrayFormat
(
d
,
a
)},
updateNode
:
function
(
a
){
a
&&
k
(
a
,
d
).
get
(
0
)
&&
j
.
uCanDo
(
d
)
&&
(
i
.
setNodeName
(
d
,
a
),
i
.
setNodeTarget
(
d
,
a
),
i
.
setNodeUrl
(
d
,
a
),
i
.
setNodeLineIcos
(
d
,
a
),
i
.
setNodeFontCss
(
d
,
a
))}};
b
.
treeTools
=
c
;
h
.
setZTreeTools
(
d
,
c
);
b
[
a
]
&&
b
[
a
].
length
>
0
?
i
.
createNodes
(
d
,
0
,
b
[
a
],
null
,
-
1
):
d
.
async
.
enable
&&
d
.
async
.
url
&&
d
.
async
.
url
!==
""
&&
i
.
asyncNode
(
d
);
return
c
}};
var
P
=
q
.
fn
.
zTree
,
k
=
j
.
$
,
f
=
P
.
consts
})(
jQuery
);
js/jquery.ztree.excheck.js
浏览文件 @
d57b614b
/*
* JQuery zTree excheck v3.5.2
3
* JQuery zTree excheck v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
$
){
//default consts of excheck
...
...
js/jquery.ztree.excheck.min.js
浏览文件 @
d57b614b
/*
* JQuery zTree excheck v3.5.2
3
* JQuery zTree excheck v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
m
){
var
p
,
q
,
r
,
o
=
{
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
"
}},
v
=
{
check
:{
enable
:
!
1
,
autoCheckTrigger
:
!
1
,
chkStyle
:
o
.
checkbox
.
STYLE
,
nocheckInherit
:
!
1
,
chkDisabledInherit
:
!
1
,
radioType
:
o
.
radio
.
TYPE_LEVEL
,
chkboxType
:{
Y
:
"
ps
"
,
N
:
"
ps
"
}},
data
:{
key
:{
checked
:
"
checked
"
}},
callback
:{
beforeCheck
:
null
,
onCheck
:
null
}};
p
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
b
.
data
.
key
.
checked
;
if
(
k
.
apply
(
b
.
callback
.
beforeCheck
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
!
0
;
a
[
d
]
=!
a
[
d
];
e
.
checkNodeRelation
(
b
,
a
);
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
e
.
setChkClass
(
b
,
d
,
a
);
e
.
repairParentChkClassWithSelf
(
b
,
a
);
b
.
treeObj
.
trigger
(
j
.
event
.
CHECK
,[
c
,
b
.
treeId
,
a
]);
return
!
0
};
q
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===!
0
)
return
!
1
;
var
b
=
g
.
getSetting
(
c
.
data
.
treeId
),
d
=
n
(
a
,
j
.
id
.
CHECK
,
b
);
a
.
check_Focus
=!
0
;
e
.
setChkClass
(
b
,
d
,
a
);
return
!
0
};
r
=
function
(
c
,
a
){
if
(
a
.
chkDisabled
===
...
...
js/jquery.ztree.exedit.js
浏览文件 @
d57b614b
/*
* JQuery zTree exedit v3.5.2
3
* JQuery zTree exedit v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
$
){
//default consts of exedit
...
...
js/jquery.ztree.exedit.min.js
浏览文件 @
d57b614b
/*
* JQuery zTree exedit v3.5.2
3
* JQuery zTree exedit v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
v
){
var
J
=
{
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
"
}},
x
=
{
onHoverOverNode
:
function
(
b
,
a
){
var
c
=
m
.
getSetting
(
b
.
data
.
treeId
),
d
=
m
.
getRoot
(
c
);
if
(
d
.
curHoverNode
!=
a
)
x
.
onHoverOutNode
(
b
);
d
.
curHoverNode
=
a
;
f
.
addHoverDom
(
c
,
a
)},
onHoverOutNode
:
function
(
b
){
var
b
=
m
.
getSetting
(
b
.
data
.
treeId
),
a
=
m
.
getRoot
(
b
);
if
(
a
.
curHoverNode
&&!
m
.
isSelectedNode
(
b
,
a
.
curHoverNode
))
f
.
removeTreeDom
(
b
,
a
.
curHoverNode
),
a
.
curHoverNode
=
null
},
onMousedownNode
:
function
(
b
,
a
){
function
c
(
b
){
if
(
B
.
dragFlag
==
0
&&
Math
.
abs
(
O
-
b
.
clientX
)
<
e
.
edit
.
drag
.
minMoveSize
&&
Math
.
abs
(
P
-
b
.
clientY
)
<
e
.
edit
.
drag
.
minMoveSize
)
return
!
0
;
var
a
,
c
,
n
,
k
,
i
;
i
=
e
.
data
.
key
.
children
;
M
.
css
(
"
cursor
"
,
"
pointer
"
);
if
(
B
.
dragFlag
==
0
){
if
(
g
.
apply
(
e
.
callback
.
beforeDrag
,[
e
.
treeId
,
l
],
!
0
)
==!
1
)
return
r
(
b
),
!
0
;
for
(
a
=
0
,
c
=
l
.
length
;
a
<
c
;
a
++
){
if
(
a
==
0
)
B
.
dragNodeShowBefore
=
...
...
js/jquery.ztree.exhide.js
浏览文件 @
d57b614b
/*
* JQuery zTree exHideNodes v3.5.2
3
* JQuery zTree exHideNodes v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
$
){
//default init node of exLib
...
...
js/jquery.ztree.exhide.min.js
浏览文件 @
d57b614b
/*
* JQuery zTree exHideNodes v3.5.2
3
* JQuery zTree exHideNodes v3.5.2
4
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2016-0
4-01
* Date: 2016-0
6-06
*/
(
function
(
i
){
i
.
extend
(
!
0
,
i
.
fn
.
zTree
.
_z
,{
view
:{
clearOldFirstNode
:
function
(
c
,
a
){
for
(
var
b
=
a
.
getNextNode
();
b
;){
if
(
b
.
isFirstNode
){
b
.
isFirstNode
=!
1
;
d
.
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
&&
d
.
setNodeLineIcos
(
c
,
a
);
break
}
if
(
a
.
isFirstNode
)
break
;
a
=
a
.
getPreNode
()}},
makeDOMNodeMainBefore
:
function
(
c
,
a
,
b
){
c
.
push
(
"
<li
"
,
b
.
isHidden
?
"
style='display:none;'
"
:
""
,
"
id='
"
,
b
.
tId
,
"
' class='
"
,
l
.
className
.
LEVEL
,
b
.
level
,
"
' tabindex='0' hidefocus='true' treenode>
"
)},
showNode
:
function
(
c
,
a
){
a
.
isHidden
=!
1
;
f
.
initShowForExCheck
(
c
,
a
);
j
(
a
,
c
).
show
()},
showNodes
:
function
(
c
,
a
,
b
){
if
(
a
&&
a
.
length
!=
0
){
var
e
=
{},
g
,
k
;
for
(
g
=
0
,
k
=
a
.
length
;
g
<
k
;
g
++
){
var
h
=
a
[
g
];
if
(
!
e
[
h
.
parentTId
]){
var
i
=
h
.
getParentNode
();
e
[
h
.
parentTId
]
=
i
===
null
?
f
.
getRoot
(
c
):
h
.
getParentNode
()}
d
.
showNode
(
c
,
h
,
b
)}
for
(
var
j
in
e
)
a
=
e
[
j
][
c
.
data
.
key
.
children
],
d
.
setFirstNodeForShow
(
c
,
a
),
d
.
setLastNodeForShow
(
c
,
a
)}},
hideNode
:
function
(
c
,
a
){
a
.
isHidden
=!
0
;
a
.
isFirstNode
=!
1
;
a
.
isLastNode
=
...
...
log v3.x.txt
浏览文件 @
d57b614b
...
...
@@ -14,6 +14,9 @@
</font>
*2016.06.06* v3.5.24
* [修改] selectNode 方法中 某些情况下,isSilent 参数无效
*2016.04.08* v3.5.23
* [修改] expandCollapseNode 方法被 gulp 压缩后,在 IE8 上会导致溢出
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录