Skip to content

Commit

Permalink
Add className to <span> tag which show the node's name
Browse files Browse the repository at this point in the history
  • Loading branch information
zTree committed Nov 15, 2015
1 parent a6f9002 commit 74045a8
Show file tree
Hide file tree
Showing 16 changed files with 135 additions and 110 deletions.
56 changes: 28 additions & 28 deletions api/apiCss/jquery.ztree.core-3.5.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions demo/cn/asyncData/getNodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
if ($pName==null) $pName = "";
else $pName = $pName.".";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);

$pName = str_replace("%<%", "&lt;", $pName);
$pName = str_replace("%>%", "&gt;", $pName);

//for ($i=1; $i<9999; $i++) {
// for ($j=1; $j<999; $j++) {
//
Expand Down
3 changes: 3 additions & 0 deletions demo/cn/asyncData/getNodesForBigData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
if ($pId==null || $pId=="") $pId = "0";
if ($pCount==null || $pCount=="") $pCount = "10";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);

$max = (int)$pCount;
for ($i=1; $i<=$max; $i++) {
$nId = $pId."_".$i;
Expand Down
6 changes: 6 additions & 0 deletions demo/en/asyncData/getNodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
if ($pName==null) $pName = "";
else $pName = $pName.".";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);

$pName = str_replace("%<%", "&lt;", $pName);
$pName = str_replace("%>%", "&gt;", $pName);

//for ($i=1; $i<9999; $i++) {
// for ($j=1; $j<999; $j++) {
//
Expand Down
3 changes: 3 additions & 0 deletions demo/en/asyncData/getNodesForBigData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
if ($pId==null || $pId=="") $pId = "0";
if ($pCount==null || $pCount=="") $pCount = "10";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);

$max = (int)$pCount;
for ($i=1; $i<=$max; $i++) {
$nId = $pId."_".$i;
Expand Down
16 changes: 9 additions & 7 deletions js/jquery.ztree.all-3.5.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*
* JQuery zTree core v3.5.19.1
* JQuery zTree core v3.5.19.2
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
Expand All @@ -9,7 +9,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: [email protected]
* Date: 2015-10-26
* Date: 2015-11-15
*/
(function($){
var settings = {}, roots = {}, caches = {},
Expand All @@ -19,7 +19,8 @@
BUTTON: "button",
LEVEL: "level",
ICO_LOADING: "ico_loading",
SWITCH: "switch"
SWITCH: "switch",
NAME: 'node_name'
},
event: {
NODECREATED: "ztree_nodeCreated",
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand All @@ -1803,7 +1805,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: [email protected]
* Date: 2015-10-26
* Date: 2015-11-15
*/
(function($){
//default consts of excheck
Expand Down Expand Up @@ -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
Expand All @@ -2431,7 +2433,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: [email protected]
* Date: 2015-10-26
* Date: 2015-11-15
*/
(function($){
//default consts of exedit
Expand Down
64 changes: 32 additions & 32 deletions js/jquery.ztree.all-3.5.min.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions js/jquery.ztree.core-3.5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* JQuery zTree core v3.5.19.1
* JQuery zTree core v3.5.19.2
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
Expand All @@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: [email protected]
* Date: 2015-10-26
* Date: 2015-11-15
*/
(function($){
var settings = {}, roots = {}, caches = {},
Expand All @@ -18,7 +18,8 @@
BUTTON: "button",
LEVEL: "level",
ICO_LOADING: "ico_loading",
SWITCH: "switch"
SWITCH: "switch",
NAME: 'node_name'
},
event: {
NODECREATED: "ztree_nodeCreated",
Expand Down Expand Up @@ -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) {
Expand Down
56 changes: 28 additions & 28 deletions js/jquery.ztree.core-3.5.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.ztree.excheck-3.5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* JQuery zTree excheck v3.5.19.1
* JQuery zTree excheck v3.5.19.2
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
Expand All @@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: [email protected]
* Date: 2015-10-26
* Date: 2015-11-15
*/
(function($){
//default consts of excheck
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.ztree.excheck-3.5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/jquery.ztree.exedit-3.5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* JQuery zTree exedit v3.5.19.1
* JQuery zTree exedit v3.5.19.2
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
Expand All @@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: [email protected]
* Date: 2015-10-26
* Date: 2015-11-15
*/
(function($){
//default consts of exedit
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.ztree.exedit-3.5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/jquery.ztree.exhide-3.5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* JQuery zTree exHideNodes v3.5.19.1
* JQuery zTree exHideNodes v3.5.19.2
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
Expand All @@ -8,7 +8,7 @@
* http://www.opensource.org/licenses/mit-license.php
*
* email: [email protected]
* Date: 2015-10-26
* Date: 2015-11-15
*/
(function($){
//default init node of exLib
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.ztree.exhide-3.5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions log v3.x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 方法,可以快速获取 节点在 子节点中的位置
Expand Down

0 comments on commit 74045a8

Please sign in to comment.