Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GitCode
1024程序员开源挑战赛(10.23-11.14)
提交
799c9375
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看板
提交
799c9375
编写于
12月 13, 2014
作者:
Z
ztree
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed: ajax cache
上级
14b93ed6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
7 deletion
+10
-7
api/apiCss/jquery.ztree.core-3.5.js
api/apiCss/jquery.ztree.core-3.5.js
+2
-2
js/jquery.ztree.all-3.5.js
js/jquery.ztree.all-3.5.js
+1
-0
js/jquery.ztree.all-3.5.min.js
js/jquery.ztree.all-3.5.min.js
+2
-2
js/jquery.ztree.core-3.5.js
js/jquery.ztree.core-3.5.js
+1
-0
js/jquery.ztree.core-3.5.min.js
js/jquery.ztree.core-3.5.min.js
+2
-2
log v3.x.txt
log v3.x.txt
+2
-1
未找到文件。
api/apiCss/jquery.ztree.core-3.5.js
浏览文件 @
799c9375
...
...
@@ -38,8 +38,8 @@ c[d].tagName)&&a.getAttribute(c[d].attrName)!==null)return a;a=a.parentNode}retu
f
,
e
.
folder
.
CLOSE
),
i
.
replaceIcoClass
(
a
,
g
,
e
.
folder
.
CLOSE
),
a
.
open
=!
1
,
l
.
css
({
display
:
"
none
"
});
h
.
addNodesData
(
b
,
a
,
c
);
i
.
createNodes
(
b
,
a
.
level
+
1
,
c
,
a
);
d
||
i
.
expandCollapseParentNode
(
b
,
a
,
!
0
)}
else
h
.
addNodesData
(
b
,
h
.
getRoot
(
b
),
c
),
i
.
createNodes
(
b
,
0
,
c
,
null
)},
appendNodes
:
function
(
b
,
a
,
c
,
d
,
f
,
g
){
if
(
!
c
)
return
[];
for
(
var
e
=
[],
j
=
b
.
data
.
key
.
children
,
k
=
0
,
m
=
c
.
length
;
k
<
m
;
k
++
){
var
o
=
c
[
k
];
if
(
f
){
var
t
=
(
d
?
d
:
h
.
getRoot
(
b
))[
j
].
length
==
c
.
length
&&
k
==
0
;
h
.
initNode
(
b
,
a
,
o
,
d
,
t
,
k
==
c
.
length
-
1
,
g
);
h
.
addNodeCache
(
b
,
o
)}
t
=
[];
o
[
j
]
&&
o
[
j
].
length
>
0
&&
(
t
=
i
.
appendNodes
(
b
,
a
+
1
,
o
[
j
],
o
,
f
,
g
&&
o
.
open
));
g
&&
(
i
.
makeDOMNodeMainBefore
(
e
,
b
,
o
),
i
.
makeDOMNodeLine
(
e
,
b
,
o
),
h
.
getBeforeA
(
b
,
o
,
e
),
i
.
makeDOMNodeNameBefore
(
e
,
b
,
o
),
h
.
getInnerBeforeA
(
b
,
o
,
e
),
i
.
makeDOMNodeIcon
(
e
,
b
,
o
),
h
.
getInnerAfterA
(
b
,
o
,
e
),
i
.
makeDOMNodeNameAfter
(
e
,
b
,
o
),
h
.
getAfterA
(
b
,
o
,
e
),
o
.
isParent
&&
o
.
open
&&
i
.
makeUlHtml
(
b
,
o
,
e
,
t
.
join
(
""
)),
i
.
makeDOMNodeMainAfter
(
e
,
b
,
o
),
h
.
addCreatedNode
(
b
,
o
))}
return
e
},
appendParentULDom
:
function
(
b
,
a
){
var
c
=
[],
d
=
k
(
a
,
b
);
!
d
.
get
(
0
)
&&
a
.
parentTId
&&
(
i
.
appendParentULDom
(
b
,
a
.
getParentNode
()),
d
=
k
(
a
,
b
));
var
f
=
k
(
a
,
e
.
id
.
UL
,
b
);
f
.
get
(
0
)
&&
f
.
remove
();
f
=
i
.
appendNodes
(
b
,
a
.
level
+
1
,
a
[
b
.
data
.
key
.
children
],
a
,
!
1
,
!
0
);
i
.
makeUlHtml
(
b
,
a
,
c
,
f
.
join
(
""
));
d
.
append
(
c
.
join
(
""
))},
asyncNode
:
function
(
b
,
a
,
c
,
d
){
var
f
,
g
;
if
(
a
&&!
a
.
isParent
)
return
j
.
apply
(
d
),
!
1
;
else
if
(
a
&&
a
.
isAjaxing
)
return
!
1
;
else
if
(
j
.
apply
(
b
.
callback
.
beforeAsync
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
j
.
apply
(
d
),
!
1
;
if
(
a
)
a
.
isAjaxing
=!
0
,
k
(
a
,
e
.
id
.
ICON
,
b
).
attr
({
style
:
""
,
"
class
"
:
e
.
className
.
BUTTON
+
"
"
+
e
.
className
.
ICO_LOADING
});
var
l
=
{};
for
(
f
=
0
,
g
=
b
.
async
.
autoParam
.
length
;
a
&&
f
<
g
;
f
++
){
var
q
=
b
.
async
.
autoParam
[
f
].
split
(
"
=
"
),
n
=
q
;
q
.
length
>
1
&&
(
n
=
q
[
1
],
q
=
q
[
0
]);
l
[
n
]
=
a
[
q
]}
if
(
j
.
isArray
(
b
.
async
.
otherParam
))
for
(
f
=
0
,
g
=
b
.
async
.
otherParam
.
length
;
f
<
g
;
f
+=
2
)
l
[
b
.
async
.
otherParam
[
f
]]
=
b
.
async
.
otherParam
[
f
+
1
];
else
for
(
var
m
in
b
.
async
.
otherParam
)
l
[
m
]
=
b
.
async
.
otherParam
[
m
];
var
o
=
h
.
getRoot
(
b
).
_ver
;
p
.
ajax
({
contentType
:
b
.
async
.
contentType
,
type
:
b
.
async
.
type
,
url
:
j
.
apply
(
b
.
async
.
url
,[
b
.
treeId
,
a
],
b
.
async
.
url
),
data
:
l
,
dataType
:
b
.
async
.
dataType
,
success
:
function
(
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
var
g
=
[];
try
{
g
=
!
f
||
f
.
length
==
0
?[]:
typeof
f
==
"
string
"
?
eval
(
"
(
"
+
f
+
"
)
"
):
f
}
catch
(
l
){
g
=
f
}
if
(
a
)
a
.
isAjaxing
=
null
,
a
.
zAsync
=!
0
;
i
.
setNodeLineIcos
(
b
,
a
);
g
&&
g
!==
""
?(
g
=
j
.
apply
(
b
.
async
.
dataFilter
,[
b
.
treeId
,
a
,
g
],
g
),
i
.
addNodes
(
b
,
a
,
g
?
j
.
clone
(
g
):[],
!!
c
)):
i
.
addNodes
(
b
,
a
,[],
!!
c
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_SUCCESS
,[
b
.
treeId
,
a
,
f
]);
j
.
apply
(
d
)}},
error
:
function
(
c
,
d
,
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
if
(
a
)
a
.
isAjaxing
=
null
;
i
.
setNodeLineIcos
(
b
,
a
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_ERROR
,[
b
.
treeId
,
a
,
c
,
d
,
f
])}}});
return
!
0
},
cancelPreSelectedNode
:
function
(
b
,
f
<
g
;
f
++
){
var
q
=
b
.
async
.
autoParam
[
f
].
split
(
"
=
"
),
n
=
q
;
q
.
length
>
1
&&
(
n
=
q
[
1
],
q
=
q
[
0
]);
l
[
n
]
=
a
[
q
]}
if
(
j
.
isArray
(
b
.
async
.
otherParam
))
for
(
f
=
0
,
g
=
b
.
async
.
otherParam
.
length
;
f
<
g
;
f
+=
2
)
l
[
b
.
async
.
otherParam
[
f
]]
=
b
.
async
.
otherParam
[
f
+
1
];
else
for
(
var
m
in
b
.
async
.
otherParam
)
l
[
m
]
=
b
.
async
.
otherParam
[
m
];
var
o
=
h
.
getRoot
(
b
).
_ver
;
p
.
ajax
({
contentType
:
b
.
async
.
contentType
,
cache
:
!
1
,
type
:
b
.
async
.
type
,
url
:
j
.
apply
(
b
.
async
.
url
,[
b
.
treeId
,
a
],
b
.
async
.
url
),
data
:
l
,
dataType
:
b
.
async
.
dataType
,
success
:
function
(
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
var
g
=
[];
try
{
g
=
!
f
||
f
.
length
==
0
?[]:
typeof
f
==
"
string
"
?
eval
(
"
(
"
+
f
+
"
)
"
):
f
}
catch
(
l
){
g
=
f
}
if
(
a
)
a
.
isAjaxing
=
null
,
a
.
zAsync
=!
0
;
i
.
setNodeLineIcos
(
b
,
a
);
g
&&
g
!==
""
?(
g
=
j
.
apply
(
b
.
async
.
dataFilter
,[
b
.
treeId
,
a
,
g
],
g
),
i
.
addNodes
(
b
,
a
,
g
?
j
.
clone
(
g
):[],
!!
c
)):
i
.
addNodes
(
b
,
a
,[],
!!
c
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_SUCCESS
,[
b
.
treeId
,
a
,
f
]);
j
.
apply
(
d
)}},
error
:
function
(
c
,
d
,
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
if
(
a
)
a
.
isAjaxing
=
null
;
i
.
setNodeLineIcos
(
b
,
a
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_ERROR
,[
b
.
treeId
,
a
,
c
,
d
,
f
])}}});
return
!
0
},
cancelPreSelectedNode
:
function
(
b
,
a
){
for
(
var
c
=
h
.
getRoot
(
b
).
curSelectedList
,
d
=
c
.
length
-
1
;
d
>=
0
;
d
--
)
if
(
!
a
||
a
===
c
[
d
])
if
(
k
(
c
[
d
],
e
.
id
.
A
,
b
).
removeClass
(
e
.
node
.
CURSELECTED
),
a
){
h
.
removeSelectedNode
(
b
,
a
);
break
}
if
(
!
a
)
h
.
getRoot
(
b
).
curSelectedList
=
[]},
createNodeCallback
:
function
(
b
){
if
(
b
.
callback
.
onNodeCreated
||
b
.
view
.
addDiyDom
)
for
(
var
a
=
h
.
getRoot
(
b
);
a
.
createdNodes
.
length
>
0
;){
var
c
=
a
.
createdNodes
.
shift
();
j
.
apply
(
b
.
view
.
addDiyDom
,[
b
.
treeId
,
c
]);
b
.
callback
.
onNodeCreated
&&
b
.
treeObj
.
trigger
(
e
.
event
.
NODECREATED
,[
b
.
treeId
,
c
])}},
createNodes
:
function
(
b
,
a
,
c
,
d
){
if
(
c
&&
c
.
length
!=
0
){
var
f
=
h
.
getRoot
(
b
),
g
=
b
.
data
.
key
.
children
,
g
=!
d
||
d
.
open
||!!
k
(
d
[
g
][
0
],
b
).
get
(
0
);
f
.
createdNodes
=
[];
a
=
i
.
appendNodes
(
b
,
a
,
c
,
d
,
!
0
,
g
);
d
?(
d
=
k
(
d
,
e
.
id
.
UL
,
b
),
d
.
get
(
0
)
&&
d
.
append
(
a
.
join
(
""
))):
b
.
treeObj
.
append
(
a
.
join
(
""
));
i
.
createNodeCallback
(
b
)}},
destroy
:
function
(
b
){
b
&&
(
h
.
initCache
(
b
),
h
.
initRoot
(
b
),
m
.
unbindTree
(
b
),
m
.
unbindEvent
(
b
),
b
.
treeObj
.
empty
(),
delete
r
[
b
.
treeId
])},
expandCollapseNode
:
function
(
b
,
a
,
c
,
d
,
f
){
var
g
=
h
.
getRoot
(
b
),
l
=
b
.
data
.
key
.
children
;
if
(
a
){
if
(
g
.
expandTriggerFlag
){
var
q
=
f
,
f
=
function
(){
q
&&
q
();
a
.
open
?
b
.
treeObj
.
trigger
(
e
.
event
.
EXPAND
,[
b
.
treeId
,
a
]):
b
.
treeObj
.
trigger
(
e
.
event
.
COLLAPSE
,[
b
.
treeId
,
a
])};
g
.
expandTriggerFlag
=!
1
}
if
(
!
a
.
open
&&
a
.
isParent
&&
(
!
k
(
a
,
e
.
id
.
UL
,
b
).
get
(
0
)
||
a
[
l
]
&&
a
[
l
].
length
>
0
&&!
k
(
a
[
l
][
0
],
b
).
get
(
0
)))
i
.
appendParentULDom
(
b
,
a
),
i
.
createNodeCallback
(
b
);
if
(
a
.
open
==
c
)
j
.
apply
(
f
,[]);
else
{
var
c
=
k
(
a
,
e
.
id
.
UL
,
b
),
g
=
k
(
a
,
e
.
id
.
SWITCH
,
b
),
n
=
k
(
a
,
e
.
id
.
ICON
,
b
);
a
.
isParent
?(
a
.
open
=!
a
.
open
,
a
.
iconOpen
&&
a
.
iconClose
&&
n
.
attr
(
"
style
"
,
i
.
makeNodeIcoStyle
(
b
,
a
)),
a
.
open
?(
i
.
replaceSwitchClass
(
a
,
...
...
js/jquery.ztree.all-3.5.js
浏览文件 @
799c9375
...
...
@@ -933,6 +933,7 @@
var
_tmpV
=
data
.
getRoot
(
setting
).
_ver
;
$
.
ajax
({
contentType
:
setting
.
async
.
contentType
,
cache
:
false
,
type
:
setting
.
async
.
type
,
url
:
tools
.
apply
(
setting
.
async
.
url
,
[
setting
.
treeId
,
node
],
setting
.
async
.
url
),
data
:
tmpParam
,
...
...
js/jquery.ztree.all-3.5.min.js
浏览文件 @
799c9375
...
...
@@ -39,8 +39,8 @@ c[d].tagName)&&a.getAttribute(c[d].attrName)!==null)return a;a=a.parentNode}retu
f
,
e
.
folder
.
CLOSE
),
i
.
replaceIcoClass
(
a
,
g
,
e
.
folder
.
CLOSE
),
a
.
open
=!
1
,
l
.
css
({
display
:
"
none
"
});
h
.
addNodesData
(
b
,
a
,
c
);
i
.
createNodes
(
b
,
a
.
level
+
1
,
c
,
a
);
d
||
i
.
expandCollapseParentNode
(
b
,
a
,
!
0
)}
else
h
.
addNodesData
(
b
,
h
.
getRoot
(
b
),
c
),
i
.
createNodes
(
b
,
0
,
c
,
null
)},
appendNodes
:
function
(
b
,
a
,
c
,
d
,
f
,
g
){
if
(
!
c
)
return
[];
for
(
var
e
=
[],
j
=
b
.
data
.
key
.
children
,
k
=
0
,
m
=
c
.
length
;
k
<
m
;
k
++
){
var
o
=
c
[
k
];
if
(
f
){
var
t
=
(
d
?
d
:
h
.
getRoot
(
b
))[
j
].
length
==
c
.
length
&&
k
==
0
;
h
.
initNode
(
b
,
a
,
o
,
d
,
t
,
k
==
c
.
length
-
1
,
g
);
h
.
addNodeCache
(
b
,
o
)}
t
=
[];
o
[
j
]
&&
o
[
j
].
length
>
0
&&
(
t
=
i
.
appendNodes
(
b
,
a
+
1
,
o
[
j
],
o
,
f
,
g
&&
o
.
open
));
g
&&
(
i
.
makeDOMNodeMainBefore
(
e
,
b
,
o
),
i
.
makeDOMNodeLine
(
e
,
b
,
o
),
h
.
getBeforeA
(
b
,
o
,
e
),
i
.
makeDOMNodeNameBefore
(
e
,
b
,
o
),
h
.
getInnerBeforeA
(
b
,
o
,
e
),
i
.
makeDOMNodeIcon
(
e
,
b
,
o
),
h
.
getInnerAfterA
(
b
,
o
,
e
),
i
.
makeDOMNodeNameAfter
(
e
,
b
,
o
),
h
.
getAfterA
(
b
,
o
,
e
),
o
.
isParent
&&
o
.
open
&&
i
.
makeUlHtml
(
b
,
o
,
e
,
t
.
join
(
""
)),
i
.
makeDOMNodeMainAfter
(
e
,
b
,
o
),
h
.
addCreatedNode
(
b
,
o
))}
return
e
},
appendParentULDom
:
function
(
b
,
a
){
var
c
=
[],
d
=
k
(
a
,
b
);
!
d
.
get
(
0
)
&&
a
.
parentTId
&&
(
i
.
appendParentULDom
(
b
,
a
.
getParentNode
()),
d
=
k
(
a
,
b
));
var
f
=
k
(
a
,
e
.
id
.
UL
,
b
);
f
.
get
(
0
)
&&
f
.
remove
();
f
=
i
.
appendNodes
(
b
,
a
.
level
+
1
,
a
[
b
.
data
.
key
.
children
],
a
,
!
1
,
!
0
);
i
.
makeUlHtml
(
b
,
a
,
c
,
f
.
join
(
""
));
d
.
append
(
c
.
join
(
""
))},
asyncNode
:
function
(
b
,
a
,
c
,
d
){
var
f
,
g
;
if
(
a
&&!
a
.
isParent
)
return
j
.
apply
(
d
),
!
1
;
else
if
(
a
&&
a
.
isAjaxing
)
return
!
1
;
else
if
(
j
.
apply
(
b
.
callback
.
beforeAsync
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
j
.
apply
(
d
),
!
1
;
if
(
a
)
a
.
isAjaxing
=!
0
,
k
(
a
,
e
.
id
.
ICON
,
b
).
attr
({
style
:
""
,
"
class
"
:
e
.
className
.
BUTTON
+
"
"
+
e
.
className
.
ICO_LOADING
});
var
l
=
{};
for
(
f
=
0
,
g
=
b
.
async
.
autoParam
.
length
;
a
&&
f
<
g
;
f
++
){
var
q
=
b
.
async
.
autoParam
[
f
].
split
(
"
=
"
),
n
=
q
;
q
.
length
>
1
&&
(
n
=
q
[
1
],
q
=
q
[
0
]);
l
[
n
]
=
a
[
q
]}
if
(
j
.
isArray
(
b
.
async
.
otherParam
))
for
(
f
=
0
,
g
=
b
.
async
.
otherParam
.
length
;
f
<
g
;
f
+=
2
)
l
[
b
.
async
.
otherParam
[
f
]]
=
b
.
async
.
otherParam
[
f
+
1
];
else
for
(
var
m
in
b
.
async
.
otherParam
)
l
[
m
]
=
b
.
async
.
otherParam
[
m
];
var
o
=
h
.
getRoot
(
b
).
_ver
;
p
.
ajax
({
contentType
:
b
.
async
.
contentType
,
type
:
b
.
async
.
type
,
url
:
j
.
apply
(
b
.
async
.
url
,[
b
.
treeId
,
a
],
b
.
async
.
url
),
data
:
l
,
dataType
:
b
.
async
.
dataType
,
success
:
function
(
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
var
g
=
[];
try
{
g
=
!
f
||
f
.
length
==
0
?[]:
typeof
f
==
"
string
"
?
eval
(
"
(
"
+
f
+
"
)
"
):
f
}
catch
(
l
){
g
=
f
}
if
(
a
)
a
.
isAjaxing
=
null
,
a
.
zAsync
=!
0
;
i
.
setNodeLineIcos
(
b
,
a
);
g
&&
g
!==
""
?(
g
=
j
.
apply
(
b
.
async
.
dataFilter
,[
b
.
treeId
,
a
,
g
],
g
),
i
.
addNodes
(
b
,
a
,
g
?
j
.
clone
(
g
):[],
!!
c
)):
i
.
addNodes
(
b
,
a
,[],
!!
c
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_SUCCESS
,[
b
.
treeId
,
a
,
f
]);
j
.
apply
(
d
)}},
error
:
function
(
c
,
d
,
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
if
(
a
)
a
.
isAjaxing
=
null
;
i
.
setNodeLineIcos
(
b
,
a
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_ERROR
,[
b
.
treeId
,
a
,
c
,
d
,
f
])}}});
return
!
0
},
cancelPreSelectedNode
:
function
(
b
,
f
<
g
;
f
++
){
var
q
=
b
.
async
.
autoParam
[
f
].
split
(
"
=
"
),
n
=
q
;
q
.
length
>
1
&&
(
n
=
q
[
1
],
q
=
q
[
0
]);
l
[
n
]
=
a
[
q
]}
if
(
j
.
isArray
(
b
.
async
.
otherParam
))
for
(
f
=
0
,
g
=
b
.
async
.
otherParam
.
length
;
f
<
g
;
f
+=
2
)
l
[
b
.
async
.
otherParam
[
f
]]
=
b
.
async
.
otherParam
[
f
+
1
];
else
for
(
var
m
in
b
.
async
.
otherParam
)
l
[
m
]
=
b
.
async
.
otherParam
[
m
];
var
o
=
h
.
getRoot
(
b
).
_ver
;
p
.
ajax
({
contentType
:
b
.
async
.
contentType
,
cache
:
!
1
,
type
:
b
.
async
.
type
,
url
:
j
.
apply
(
b
.
async
.
url
,[
b
.
treeId
,
a
],
b
.
async
.
url
),
data
:
l
,
dataType
:
b
.
async
.
dataType
,
success
:
function
(
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
var
g
=
[];
try
{
g
=
!
f
||
f
.
length
==
0
?[]:
typeof
f
==
"
string
"
?
eval
(
"
(
"
+
f
+
"
)
"
):
f
}
catch
(
l
){
g
=
f
}
if
(
a
)
a
.
isAjaxing
=
null
,
a
.
zAsync
=!
0
;
i
.
setNodeLineIcos
(
b
,
a
);
g
&&
g
!==
""
?(
g
=
j
.
apply
(
b
.
async
.
dataFilter
,[
b
.
treeId
,
a
,
g
],
g
),
i
.
addNodes
(
b
,
a
,
g
?
j
.
clone
(
g
):[],
!!
c
)):
i
.
addNodes
(
b
,
a
,[],
!!
c
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_SUCCESS
,[
b
.
treeId
,
a
,
f
]);
j
.
apply
(
d
)}},
error
:
function
(
c
,
d
,
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
if
(
a
)
a
.
isAjaxing
=
null
;
i
.
setNodeLineIcos
(
b
,
a
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_ERROR
,[
b
.
treeId
,
a
,
c
,
d
,
f
])}}});
return
!
0
},
cancelPreSelectedNode
:
function
(
b
,
a
){
for
(
var
c
=
h
.
getRoot
(
b
).
curSelectedList
,
d
=
c
.
length
-
1
;
d
>=
0
;
d
--
)
if
(
!
a
||
a
===
c
[
d
])
if
(
k
(
c
[
d
],
e
.
id
.
A
,
b
).
removeClass
(
e
.
node
.
CURSELECTED
),
a
){
h
.
removeSelectedNode
(
b
,
a
);
break
}
if
(
!
a
)
h
.
getRoot
(
b
).
curSelectedList
=
[]},
createNodeCallback
:
function
(
b
){
if
(
b
.
callback
.
onNodeCreated
||
b
.
view
.
addDiyDom
)
for
(
var
a
=
h
.
getRoot
(
b
);
a
.
createdNodes
.
length
>
0
;){
var
c
=
a
.
createdNodes
.
shift
();
j
.
apply
(
b
.
view
.
addDiyDom
,[
b
.
treeId
,
c
]);
b
.
callback
.
onNodeCreated
&&
b
.
treeObj
.
trigger
(
e
.
event
.
NODECREATED
,[
b
.
treeId
,
c
])}},
createNodes
:
function
(
b
,
a
,
c
,
d
){
if
(
c
&&
c
.
length
!=
0
){
var
f
=
h
.
getRoot
(
b
),
g
=
b
.
data
.
key
.
children
,
g
=!
d
||
d
.
open
||!!
k
(
d
[
g
][
0
],
b
).
get
(
0
);
f
.
createdNodes
=
[];
a
=
i
.
appendNodes
(
b
,
a
,
c
,
d
,
!
0
,
g
);
d
?(
d
=
k
(
d
,
e
.
id
.
UL
,
b
),
d
.
get
(
0
)
&&
d
.
append
(
a
.
join
(
""
))):
b
.
treeObj
.
append
(
a
.
join
(
""
));
i
.
createNodeCallback
(
b
)}},
destroy
:
function
(
b
){
b
&&
(
h
.
initCache
(
b
),
h
.
initRoot
(
b
),
m
.
unbindTree
(
b
),
m
.
unbindEvent
(
b
),
b
.
treeObj
.
empty
(),
delete
r
[
b
.
treeId
])},
expandCollapseNode
:
function
(
b
,
a
,
c
,
d
,
f
){
var
g
=
h
.
getRoot
(
b
),
l
=
b
.
data
.
key
.
children
;
if
(
a
){
if
(
g
.
expandTriggerFlag
){
var
q
=
f
,
f
=
function
(){
q
&&
q
();
a
.
open
?
b
.
treeObj
.
trigger
(
e
.
event
.
EXPAND
,[
b
.
treeId
,
a
]):
b
.
treeObj
.
trigger
(
e
.
event
.
COLLAPSE
,[
b
.
treeId
,
a
])};
g
.
expandTriggerFlag
=!
1
}
if
(
!
a
.
open
&&
a
.
isParent
&&
(
!
k
(
a
,
e
.
id
.
UL
,
b
).
get
(
0
)
||
a
[
l
]
&&
a
[
l
].
length
>
0
&&!
k
(
a
[
l
][
0
],
b
).
get
(
0
)))
i
.
appendParentULDom
(
b
,
a
),
i
.
createNodeCallback
(
b
);
if
(
a
.
open
==
c
)
j
.
apply
(
f
,[]);
else
{
var
c
=
k
(
a
,
e
.
id
.
UL
,
b
),
g
=
k
(
a
,
e
.
id
.
SWITCH
,
b
),
n
=
k
(
a
,
e
.
id
.
ICON
,
b
);
a
.
isParent
?(
a
.
open
=!
a
.
open
,
a
.
iconOpen
&&
a
.
iconClose
&&
n
.
attr
(
"
style
"
,
i
.
makeNodeIcoStyle
(
b
,
a
)),
a
.
open
?(
i
.
replaceSwitchClass
(
a
,
...
...
js/jquery.ztree.core-3.5.js
浏览文件 @
799c9375
...
...
@@ -932,6 +932,7 @@
var
_tmpV
=
data
.
getRoot
(
setting
).
_ver
;
$
.
ajax
({
contentType
:
setting
.
async
.
contentType
,
cache
:
false
,
type
:
setting
.
async
.
type
,
url
:
tools
.
apply
(
setting
.
async
.
url
,
[
setting
.
treeId
,
node
],
setting
.
async
.
url
),
data
:
tmpParam
,
...
...
js/jquery.ztree.core-3.5.min.js
浏览文件 @
799c9375
...
...
@@ -38,8 +38,8 @@ c[d].tagName)&&a.getAttribute(c[d].attrName)!==null)return a;a=a.parentNode}retu
f
,
e
.
folder
.
CLOSE
),
i
.
replaceIcoClass
(
a
,
g
,
e
.
folder
.
CLOSE
),
a
.
open
=!
1
,
l
.
css
({
display
:
"
none
"
});
h
.
addNodesData
(
b
,
a
,
c
);
i
.
createNodes
(
b
,
a
.
level
+
1
,
c
,
a
);
d
||
i
.
expandCollapseParentNode
(
b
,
a
,
!
0
)}
else
h
.
addNodesData
(
b
,
h
.
getRoot
(
b
),
c
),
i
.
createNodes
(
b
,
0
,
c
,
null
)},
appendNodes
:
function
(
b
,
a
,
c
,
d
,
f
,
g
){
if
(
!
c
)
return
[];
for
(
var
e
=
[],
j
=
b
.
data
.
key
.
children
,
k
=
0
,
m
=
c
.
length
;
k
<
m
;
k
++
){
var
o
=
c
[
k
];
if
(
f
){
var
t
=
(
d
?
d
:
h
.
getRoot
(
b
))[
j
].
length
==
c
.
length
&&
k
==
0
;
h
.
initNode
(
b
,
a
,
o
,
d
,
t
,
k
==
c
.
length
-
1
,
g
);
h
.
addNodeCache
(
b
,
o
)}
t
=
[];
o
[
j
]
&&
o
[
j
].
length
>
0
&&
(
t
=
i
.
appendNodes
(
b
,
a
+
1
,
o
[
j
],
o
,
f
,
g
&&
o
.
open
));
g
&&
(
i
.
makeDOMNodeMainBefore
(
e
,
b
,
o
),
i
.
makeDOMNodeLine
(
e
,
b
,
o
),
h
.
getBeforeA
(
b
,
o
,
e
),
i
.
makeDOMNodeNameBefore
(
e
,
b
,
o
),
h
.
getInnerBeforeA
(
b
,
o
,
e
),
i
.
makeDOMNodeIcon
(
e
,
b
,
o
),
h
.
getInnerAfterA
(
b
,
o
,
e
),
i
.
makeDOMNodeNameAfter
(
e
,
b
,
o
),
h
.
getAfterA
(
b
,
o
,
e
),
o
.
isParent
&&
o
.
open
&&
i
.
makeUlHtml
(
b
,
o
,
e
,
t
.
join
(
""
)),
i
.
makeDOMNodeMainAfter
(
e
,
b
,
o
),
h
.
addCreatedNode
(
b
,
o
))}
return
e
},
appendParentULDom
:
function
(
b
,
a
){
var
c
=
[],
d
=
k
(
a
,
b
);
!
d
.
get
(
0
)
&&
a
.
parentTId
&&
(
i
.
appendParentULDom
(
b
,
a
.
getParentNode
()),
d
=
k
(
a
,
b
));
var
f
=
k
(
a
,
e
.
id
.
UL
,
b
);
f
.
get
(
0
)
&&
f
.
remove
();
f
=
i
.
appendNodes
(
b
,
a
.
level
+
1
,
a
[
b
.
data
.
key
.
children
],
a
,
!
1
,
!
0
);
i
.
makeUlHtml
(
b
,
a
,
c
,
f
.
join
(
""
));
d
.
append
(
c
.
join
(
""
))},
asyncNode
:
function
(
b
,
a
,
c
,
d
){
var
f
,
g
;
if
(
a
&&!
a
.
isParent
)
return
j
.
apply
(
d
),
!
1
;
else
if
(
a
&&
a
.
isAjaxing
)
return
!
1
;
else
if
(
j
.
apply
(
b
.
callback
.
beforeAsync
,[
b
.
treeId
,
a
],
!
0
)
==!
1
)
return
j
.
apply
(
d
),
!
1
;
if
(
a
)
a
.
isAjaxing
=!
0
,
k
(
a
,
e
.
id
.
ICON
,
b
).
attr
({
style
:
""
,
"
class
"
:
e
.
className
.
BUTTON
+
"
"
+
e
.
className
.
ICO_LOADING
});
var
l
=
{};
for
(
f
=
0
,
g
=
b
.
async
.
autoParam
.
length
;
a
&&
f
<
g
;
f
++
){
var
q
=
b
.
async
.
autoParam
[
f
].
split
(
"
=
"
),
n
=
q
;
q
.
length
>
1
&&
(
n
=
q
[
1
],
q
=
q
[
0
]);
l
[
n
]
=
a
[
q
]}
if
(
j
.
isArray
(
b
.
async
.
otherParam
))
for
(
f
=
0
,
g
=
b
.
async
.
otherParam
.
length
;
f
<
g
;
f
+=
2
)
l
[
b
.
async
.
otherParam
[
f
]]
=
b
.
async
.
otherParam
[
f
+
1
];
else
for
(
var
m
in
b
.
async
.
otherParam
)
l
[
m
]
=
b
.
async
.
otherParam
[
m
];
var
o
=
h
.
getRoot
(
b
).
_ver
;
p
.
ajax
({
contentType
:
b
.
async
.
contentType
,
type
:
b
.
async
.
type
,
url
:
j
.
apply
(
b
.
async
.
url
,[
b
.
treeId
,
a
],
b
.
async
.
url
),
data
:
l
,
dataType
:
b
.
async
.
dataType
,
success
:
function
(
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
var
g
=
[];
try
{
g
=
!
f
||
f
.
length
==
0
?[]:
typeof
f
==
"
string
"
?
eval
(
"
(
"
+
f
+
"
)
"
):
f
}
catch
(
l
){
g
=
f
}
if
(
a
)
a
.
isAjaxing
=
null
,
a
.
zAsync
=!
0
;
i
.
setNodeLineIcos
(
b
,
a
);
g
&&
g
!==
""
?(
g
=
j
.
apply
(
b
.
async
.
dataFilter
,[
b
.
treeId
,
a
,
g
],
g
),
i
.
addNodes
(
b
,
a
,
g
?
j
.
clone
(
g
):[],
!!
c
)):
i
.
addNodes
(
b
,
a
,[],
!!
c
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_SUCCESS
,[
b
.
treeId
,
a
,
f
]);
j
.
apply
(
d
)}},
error
:
function
(
c
,
d
,
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
if
(
a
)
a
.
isAjaxing
=
null
;
i
.
setNodeLineIcos
(
b
,
a
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_ERROR
,[
b
.
treeId
,
a
,
c
,
d
,
f
])}}});
return
!
0
},
cancelPreSelectedNode
:
function
(
b
,
f
<
g
;
f
++
){
var
q
=
b
.
async
.
autoParam
[
f
].
split
(
"
=
"
),
n
=
q
;
q
.
length
>
1
&&
(
n
=
q
[
1
],
q
=
q
[
0
]);
l
[
n
]
=
a
[
q
]}
if
(
j
.
isArray
(
b
.
async
.
otherParam
))
for
(
f
=
0
,
g
=
b
.
async
.
otherParam
.
length
;
f
<
g
;
f
+=
2
)
l
[
b
.
async
.
otherParam
[
f
]]
=
b
.
async
.
otherParam
[
f
+
1
];
else
for
(
var
m
in
b
.
async
.
otherParam
)
l
[
m
]
=
b
.
async
.
otherParam
[
m
];
var
o
=
h
.
getRoot
(
b
).
_ver
;
p
.
ajax
({
contentType
:
b
.
async
.
contentType
,
cache
:
!
1
,
type
:
b
.
async
.
type
,
url
:
j
.
apply
(
b
.
async
.
url
,[
b
.
treeId
,
a
],
b
.
async
.
url
),
data
:
l
,
dataType
:
b
.
async
.
dataType
,
success
:
function
(
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
var
g
=
[];
try
{
g
=
!
f
||
f
.
length
==
0
?[]:
typeof
f
==
"
string
"
?
eval
(
"
(
"
+
f
+
"
)
"
):
f
}
catch
(
l
){
g
=
f
}
if
(
a
)
a
.
isAjaxing
=
null
,
a
.
zAsync
=!
0
;
i
.
setNodeLineIcos
(
b
,
a
);
g
&&
g
!==
""
?(
g
=
j
.
apply
(
b
.
async
.
dataFilter
,[
b
.
treeId
,
a
,
g
],
g
),
i
.
addNodes
(
b
,
a
,
g
?
j
.
clone
(
g
):[],
!!
c
)):
i
.
addNodes
(
b
,
a
,[],
!!
c
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_SUCCESS
,[
b
.
treeId
,
a
,
f
]);
j
.
apply
(
d
)}},
error
:
function
(
c
,
d
,
f
){
if
(
o
==
h
.
getRoot
(
b
).
_ver
){
if
(
a
)
a
.
isAjaxing
=
null
;
i
.
setNodeLineIcos
(
b
,
a
);
b
.
treeObj
.
trigger
(
e
.
event
.
ASYNC_ERROR
,[
b
.
treeId
,
a
,
c
,
d
,
f
])}}});
return
!
0
},
cancelPreSelectedNode
:
function
(
b
,
a
){
for
(
var
c
=
h
.
getRoot
(
b
).
curSelectedList
,
d
=
c
.
length
-
1
;
d
>=
0
;
d
--
)
if
(
!
a
||
a
===
c
[
d
])
if
(
k
(
c
[
d
],
e
.
id
.
A
,
b
).
removeClass
(
e
.
node
.
CURSELECTED
),
a
){
h
.
removeSelectedNode
(
b
,
a
);
break
}
if
(
!
a
)
h
.
getRoot
(
b
).
curSelectedList
=
[]},
createNodeCallback
:
function
(
b
){
if
(
b
.
callback
.
onNodeCreated
||
b
.
view
.
addDiyDom
)
for
(
var
a
=
h
.
getRoot
(
b
);
a
.
createdNodes
.
length
>
0
;){
var
c
=
a
.
createdNodes
.
shift
();
j
.
apply
(
b
.
view
.
addDiyDom
,[
b
.
treeId
,
c
]);
b
.
callback
.
onNodeCreated
&&
b
.
treeObj
.
trigger
(
e
.
event
.
NODECREATED
,[
b
.
treeId
,
c
])}},
createNodes
:
function
(
b
,
a
,
c
,
d
){
if
(
c
&&
c
.
length
!=
0
){
var
f
=
h
.
getRoot
(
b
),
g
=
b
.
data
.
key
.
children
,
g
=!
d
||
d
.
open
||!!
k
(
d
[
g
][
0
],
b
).
get
(
0
);
f
.
createdNodes
=
[];
a
=
i
.
appendNodes
(
b
,
a
,
c
,
d
,
!
0
,
g
);
d
?(
d
=
k
(
d
,
e
.
id
.
UL
,
b
),
d
.
get
(
0
)
&&
d
.
append
(
a
.
join
(
""
))):
b
.
treeObj
.
append
(
a
.
join
(
""
));
i
.
createNodeCallback
(
b
)}},
destroy
:
function
(
b
){
b
&&
(
h
.
initCache
(
b
),
h
.
initRoot
(
b
),
m
.
unbindTree
(
b
),
m
.
unbindEvent
(
b
),
b
.
treeObj
.
empty
(),
delete
r
[
b
.
treeId
])},
expandCollapseNode
:
function
(
b
,
a
,
c
,
d
,
f
){
var
g
=
h
.
getRoot
(
b
),
l
=
b
.
data
.
key
.
children
;
if
(
a
){
if
(
g
.
expandTriggerFlag
){
var
q
=
f
,
f
=
function
(){
q
&&
q
();
a
.
open
?
b
.
treeObj
.
trigger
(
e
.
event
.
EXPAND
,[
b
.
treeId
,
a
]):
b
.
treeObj
.
trigger
(
e
.
event
.
COLLAPSE
,[
b
.
treeId
,
a
])};
g
.
expandTriggerFlag
=!
1
}
if
(
!
a
.
open
&&
a
.
isParent
&&
(
!
k
(
a
,
e
.
id
.
UL
,
b
).
get
(
0
)
||
a
[
l
]
&&
a
[
l
].
length
>
0
&&!
k
(
a
[
l
][
0
],
b
).
get
(
0
)))
i
.
appendParentULDom
(
b
,
a
),
i
.
createNodeCallback
(
b
);
if
(
a
.
open
==
c
)
j
.
apply
(
f
,[]);
else
{
var
c
=
k
(
a
,
e
.
id
.
UL
,
b
),
g
=
k
(
a
,
e
.
id
.
SWITCH
,
b
),
n
=
k
(
a
,
e
.
id
.
ICON
,
b
);
a
.
isParent
?(
a
.
open
=!
a
.
open
,
a
.
iconOpen
&&
a
.
iconClose
&&
n
.
attr
(
"
style
"
,
i
.
makeNodeIcoStyle
(
b
,
a
)),
a
.
open
?(
i
.
replaceSwitchClass
(
a
,
...
...
log v3.x.txt
浏览文件 @
799c9375
...
...
@@ -13,10 +13,11 @@
</font>
*2014.1
1.17
* v3.5.17
*2014.1
2.13
* v3.5.17
* 【修改】excheck 扩展中 removeClass 与 jQueryUI 1.9 冲突的问题,目前放弃 removeClass 方法
* 【修改】优化 exhide 扩展包初始化效率,避免数据多时 ie8 假死的 bug(感谢:https://github.com/sarxos)
* 【修改】若干 Demo & API 的小错误
* 【修改】异步加载 低版本 IE 缓存严重的问题
*2014.03.09* v3.5.16
* 【增加】onDragMove 回调,便于控制 zTree 节点与其他 DOM 的拖拽操作。(感谢 yumi301)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录