Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GitCode
1024程序员开源挑战赛(10.23-11.14)
提交
58a04405
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看板
提交
58a04405
编写于
11月 15, 2015
作者:
Z
zTree
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add className to <span> tag which show the node's name
上级
fd4686dd
变更
16
展开全部
显示空白变更内容
内联
并排
Showing
16 changed file
with
135 addition
and
110 deletion
+135
-110
api/apiCss/jquery.ztree.core-3.5.js
api/apiCss/jquery.ztree.core-3.5.js
+28
-28
demo/cn/asyncData/getNodes.php
demo/cn/asyncData/getNodes.php
+6
-0
demo/cn/asyncData/getNodesForBigData.php
demo/cn/asyncData/getNodesForBigData.php
+3
-0
demo/en/asyncData/getNodes.php
demo/en/asyncData/getNodes.php
+6
-0
demo/en/asyncData/getNodesForBigData.php
demo/en/asyncData/getNodesForBigData.php
+3
-0
js/jquery.ztree.all-3.5.js
js/jquery.ztree.all-3.5.js
+9
-7
js/jquery.ztree.all-3.5.min.js
js/jquery.ztree.all-3.5.min.js
+32
-32
js/jquery.ztree.core-3.5.js
js/jquery.ztree.core-3.5.js
+5
-3
js/jquery.ztree.core-3.5.min.js
js/jquery.ztree.core-3.5.min.js
+28
-28
js/jquery.ztree.excheck-3.5.js
js/jquery.ztree.excheck-3.5.js
+2
-2
js/jquery.ztree.excheck-3.5.min.js
js/jquery.ztree.excheck-3.5.min.js
+2
-2
js/jquery.ztree.exedit-3.5.js
js/jquery.ztree.exedit-3.5.js
+2
-2
js/jquery.ztree.exedit-3.5.min.js
js/jquery.ztree.exedit-3.5.min.js
+2
-2
js/jquery.ztree.exhide-3.5.js
js/jquery.ztree.exhide-3.5.js
+2
-2
js/jquery.ztree.exhide-3.5.min.js
js/jquery.ztree.exhide-3.5.min.js
+2
-2
log v3.x.txt
log v3.x.txt
+3
-0
未找到文件。
api/apiCss/jquery.ztree.core-3.5.js
浏览文件 @
58a04405
此差异已折叠。
点击以展开。
demo/cn/asyncData/getNodes.php
浏览文件 @
58a04405
...
...
@@ -21,6 +21,12 @@ if ($pLevel==null || $pLevel=="") $pLevel = "0";
if
(
$pName
==
null
)
$pName
=
""
;
else
$pName
=
$pName
.
"."
;
$pId
=
str_replace
(
"%<%"
,
"<"
,
$pId
);
$pId
=
str_replace
(
"%>%"
,
">"
,
$pId
);
$pName
=
str_replace
(
"%<%"
,
"<"
,
$pName
);
$pName
=
str_replace
(
"%>%"
,
">"
,
$pName
);
//for ($i=1; $i<9999; $i++) {
// for ($j=1; $j<999; $j++) {
//
...
...
demo/cn/asyncData/getNodesForBigData.php
浏览文件 @
58a04405
...
...
@@ -11,6 +11,9 @@ if(array_key_exists( 'count',$_REQUEST)) {
if
(
$pId
==
null
||
$pId
==
""
)
$pId
=
"0"
;
if
(
$pCount
==
null
||
$pCount
==
""
)
$pCount
=
"10"
;
$pId
=
str_replace
(
"%<%"
,
"<"
,
$pId
);
$pId
=
str_replace
(
"%>%"
,
">"
,
$pId
);
$max
=
(
int
)
$pCount
;
for
(
$i
=
1
;
$i
<=
$max
;
$i
++
)
{
$nId
=
$pId
.
"_"
.
$i
;
...
...
demo/en/asyncData/getNodes.php
浏览文件 @
58a04405
...
...
@@ -21,6 +21,12 @@ if ($pLevel==null || $pLevel=="") $pLevel = "0";
if
(
$pName
==
null
)
$pName
=
""
;
else
$pName
=
$pName
.
"."
;
$pId
=
str_replace
(
"%<%"
,
"<"
,
$pId
);
$pId
=
str_replace
(
"%>%"
,
">"
,
$pId
);
$pName
=
str_replace
(
"%<%"
,
"<"
,
$pName
);
$pName
=
str_replace
(
"%>%"
,
">"
,
$pName
);
//for ($i=1; $i<9999; $i++) {
// for ($j=1; $j<999; $j++) {
//
...
...
demo/en/asyncData/getNodesForBigData.php
浏览文件 @
58a04405
...
...
@@ -11,6 +11,9 @@ if(array_key_exists( 'count',$_REQUEST)) {
if
(
$pId
==
null
||
$pId
==
""
)
$pId
=
"0"
;
if
(
$pCount
==
null
||
$pCount
==
""
)
$pCount
=
"10"
;
$pId
=
str_replace
(
"%<%"
,
"<"
,
$pId
);
$pId
=
str_replace
(
"%>%"
,
">"
,
$pId
);
$max
=
(
int
)
$pCount
;
for
(
$i
=
1
;
$i
<=
$max
;
$i
++
)
{
$nId
=
$pId
.
"_"
.
$i
;
...
...
js/jquery.ztree.all-3.5.js
浏览文件 @
58a04405
/*
* JQuery zTree core v3.5.19.
1
* JQuery zTree core v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
$
){
var
settings
=
{},
roots
=
{},
caches
=
{},
...
...
@@ -19,7 +19,8 @@
BUTTON
:
"
button
"
,
LEVEL
:
"
level
"
,
ICO_LOADING
:
"
ico_loading
"
,
SWITCH
:
"
switch
"
SWITCH
:
"
switch
"
,
NAME
:
'
node_name
'
},
event
:
{
NODECREATED
:
"
ztree_nodeCreated
"
,
...
...
@@ -1226,6 +1227,7 @@
html
.
push
(
"
<span id='
"
,
node
.
tId
,
consts
.
id
.
ICON
,
"
' title='' treeNode
"
,
consts
.
id
.
ICON
,
"
class='
"
,
view
.
makeNodeIcoClass
(
setting
,
node
),
"
' style='
"
,
view
.
makeNodeIcoStyle
(
setting
,
node
),
"
'></span><span id='
"
,
node
.
tId
,
consts
.
id
.
SPAN
,
"
' class='
"
,
consts
.
className
.
NAME
,
"
'>
"
,
name
,
"
</span>
"
);
},
makeDOMNodeLine
:
function
(
html
,
setting
,
node
)
{
...
...
@@ -1794,7 +1796,7 @@
consts
=
zt
.
consts
;
})(
jQuery
);
/*
* JQuery zTree excheck v3.5.19.
1
* JQuery zTree excheck v3.5.19.
2
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -1803,7 +1805,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
$
){
//default consts of excheck
...
...
@@ -2422,7 +2424,7 @@
}
})(
jQuery
);
/*
* JQuery zTree exedit v3.5.19.
1
* JQuery zTree exedit v3.5.19.
2
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
...
...
@@ -2431,7 +2433,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
$
){
//default consts of exedit
...
...
js/jquery.ztree.all-3.5.min.js
浏览文件 @
58a04405
此差异已折叠。
点击以展开。
js/jquery.ztree.core-3.5.js
浏览文件 @
58a04405
/*
* JQuery zTree core v3.5.19.
1
* JQuery zTree core v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
$
){
var
settings
=
{},
roots
=
{},
caches
=
{},
...
...
@@ -18,7 +18,8 @@
BUTTON
:
"
button
"
,
LEVEL
:
"
level
"
,
ICO_LOADING
:
"
ico_loading
"
,
SWITCH
:
"
switch
"
SWITCH
:
"
switch
"
,
NAME
:
'
node_name
'
},
event
:
{
NODECREATED
:
"
ztree_nodeCreated
"
,
...
...
@@ -1225,6 +1226,7 @@
html
.
push
(
"
<span id='
"
,
node
.
tId
,
consts
.
id
.
ICON
,
"
' title='' treeNode
"
,
consts
.
id
.
ICON
,
"
class='
"
,
view
.
makeNodeIcoClass
(
setting
,
node
),
"
' style='
"
,
view
.
makeNodeIcoStyle
(
setting
,
node
),
"
'></span><span id='
"
,
node
.
tId
,
consts
.
id
.
SPAN
,
"
' class='
"
,
consts
.
className
.
NAME
,
"
'>
"
,
name
,
"
</span>
"
);
},
makeDOMNodeLine
:
function
(
html
,
setting
,
node
)
{
...
...
js/jquery.ztree.core-3.5.min.js
浏览文件 @
58a04405
此差异已折叠。
点击以展开。
js/jquery.ztree.excheck-3.5.js
浏览文件 @
58a04405
/*
* JQuery zTree excheck v3.5.19.
1
* JQuery zTree excheck v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
$
){
//default consts of excheck
...
...
js/jquery.ztree.excheck-3.5.min.js
浏览文件 @
58a04405
/*
* JQuery zTree excheck v3.5.19.
1
* JQuery zTree excheck v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
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-3.5.js
浏览文件 @
58a04405
/*
* JQuery zTree exedit v3.5.19.
1
* JQuery zTree exedit v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
$
){
//default consts of exedit
...
...
js/jquery.ztree.exedit-3.5.min.js
浏览文件 @
58a04405
/*
* JQuery zTree exedit v3.5.19.
1
* JQuery zTree exedit v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
v
){
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
"
}},
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
(
N
-
b
.
clientX
)
<
e
.
edit
.
drag
.
minMoveSize
&&
Math
.
abs
(
O
-
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-3.5.js
浏览文件 @
58a04405
/*
* JQuery zTree exHideNodes v3.5.19.
1
* JQuery zTree exHideNodes v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
function
(
$
){
//default init node of exLib
...
...
js/jquery.ztree.exhide-3.5.min.js
浏览文件 @
58a04405
/*
* JQuery zTree exHideNodes v3.5.19.
1
* JQuery zTree exHideNodes v3.5.19.
2
* 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: 2015-1
0-26
* Date: 2015-1
1-15
*/
(
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
浏览文件 @
58a04405
...
...
@@ -13,6 +13,9 @@
</font>
*2015.11.15* v3.5.19.2
* 【增加】给节点名称的 span 标签增加 class,便于用户设置 css
*2015.10.26* v3.5.19.1
* 【修改】addNodes 新方法 导致 拖拽节点时报错
* 【增加】treeNode.getIndex 方法,可以快速获取 节点在 子节点中的位置
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录