Skip to content

Commit be70dfa

Browse files
author
zTreeAPI
committed
Add 'onClick' handler only if it's not empty Thanks @afilippov1985
1 parent ddbe178 commit be70dfa

13 files changed

+28
-24
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jQuery Tree Plugin ---- zTree
22
============
3-
last verson : 3.5.45
3+
last verson : 3.5.46
44

55

66
**Donate to zTree** : http://www.treejs.cn/v3/donate.php

api/API_cn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<div class="ieSuggest">浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!</div>
3636
<div class="google_plus"><g:plusone></g:plusone></div>
3737
<div class="header-text">
38-
<h1><em>zTree v3.5.45 API 文档</em></h1><p></p>
38+
<h1><em>zTree v3.5.46 API 文档</em></h1><p></p>
3939
<p>all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。</p>
4040
</div>
4141
<ul class="shortcuts language" style="top:0;">

api/API_en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<div class="ieSuggest">If you use the Chrome / FireFox / Opera / IE9 browser will be even more dazzling effect!</div>
3535
<div class="google_plus"><g:plusone></g:plusone></div>
3636
<div class="header-text">
37-
<h1><em>zTree v3.5.45 API Document</em></h1><p></p>
37+
<h1><em>zTree v3.5.46 API Document</em></h1><p></p>
3838
<p>all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.</p>
3939
</div>
4040
<ul class="shortcuts language" style="top:0;">

api/apiCss/jquery.ztree.core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.ztree.all.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* JQuery zTree core
3-
* v3.5.45
3+
* v3.5.46
44
* http://treejs.cn/
55
*
66
* Copyright (c) 2010 Hunter.z
77
*
88
* Licensed same as jquery - MIT License
99
* http://www.opensource.org/licenses/mit-license.php
1010
*
11-
* Date: 2020-11-03
11+
* Date: 2020-11-21
1212
*/
1313

1414
(function ($) {
@@ -1343,8 +1343,9 @@
13431343
}
13441344
html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level,
13451345
nodeClasses.add ? ' ' + nodeClasses.add.join(' ') : '',
1346-
"' treeNode", consts.id.A, " onclick=\"", (node.click || ''),
1347-
"\" ", ((url != null && url.length > 0) ? "href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''),
1346+
"' treeNode", consts.id.A,
1347+
node.click ? " onclick=\"" + node.click + "\"" : "",
1348+
((url != null && url.length > 0) ? " href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''),
13481349
"'");
13491350
if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {
13501351
html.push("title='", title.replace(/'/g, "&#39;").replace(/</g, '&lt;').replace(/>/g, '&gt;'), "'");
@@ -2018,15 +2019,15 @@
20182019
})(jQuery);
20192020
/*
20202021
* JQuery zTree excheck
2021-
* v3.5.45
2022+
* v3.5.46
20222023
* http://treejs.cn/
20232024
*
20242025
* Copyright (c) 2010 Hunter.z
20252026
*
20262027
* Licensed same as jquery - MIT License
20272028
* http://www.opensource.org/licenses/mit-license.php
20282029
*
2029-
* Date: 2020-11-03
2030+
* Date: 2020-11-21
20302031
*/
20312032

20322033
(function ($) {
@@ -2670,15 +2671,15 @@
26702671
})(jQuery);
26712672
/*
26722673
* JQuery zTree exedit
2673-
* v3.5.45
2674+
* v3.5.46
26742675
* http://treejs.cn/
26752676
*
26762677
* Copyright (c) 2010 Hunter.z
26772678
*
26782679
* Licensed same as jquery - MIT License
26792680
* http://www.opensource.org/licenses/mit-license.php
26802681
*
2681-
* Date: 2020-11-03
2682+
* Date: 2020-11-21
26822683
*/
26832684

26842685
(function ($) {

js/jquery.ztree.all.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.ztree.core.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* JQuery zTree core
3-
* v3.5.45
3+
* v3.5.46
44
* http://treejs.cn/
55
*
66
* Copyright (c) 2010 Hunter.z
77
*
88
* Licensed same as jquery - MIT License
99
* http://www.opensource.org/licenses/mit-license.php
1010
*
11-
* Date: 2020-11-03
11+
* Date: 2020-11-21
1212
*/
1313

1414
(function ($) {
@@ -2016,4 +2016,4 @@
20162016
var zt = $.fn.zTree,
20172017
$$ = tools.$,
20182018
consts = zt.consts;
2019-
})(jQuery);
2019+
})(jQuery);

js/jquery.ztree.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.ztree.excheck.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* JQuery zTree excheck
3-
* v3.5.45
3+
* v3.5.46
44
* http://treejs.cn/
55
*
66
* Copyright (c) 2010 Hunter.z
77
*
88
* Licensed same as jquery - MIT License
99
* http://www.opensource.org/licenses/mit-license.php
1010
*
11-
* Date: 2020-11-03
11+
* Date: 2020-11-21
1212
*/
1313

1414
(function ($) {

js/jquery.ztree.exedit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* JQuery zTree exedit
3-
* v3.5.45
3+
* v3.5.46
44
* http://treejs.cn/
55
*
66
* Copyright (c) 2010 Hunter.z
77
*
88
* Licensed same as jquery - MIT License
99
* http://www.opensource.org/licenses/mit-license.php
1010
*
11-
* Date: 2020-11-03
11+
* Date: 2020-11-21
1212
*/
1313

1414
(function ($) {

0 commit comments

Comments
 (0)