提交 9c928f14 编写于 作者: Z zTreeAPI

Add 'onClick' handler only if it's not empty Thanks @afilippov1985

上级 4b802756
jQuery Tree Plugin ---- zTree jQuery Tree Plugin ---- zTree
============ ============
last verson : 3.5.45 last verson : 3.5.46
**Donate to zTree** : http://www.treejs.cn/v3/donate.php **Donate to zTree** : http://www.treejs.cn/v3/donate.php
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="ieSuggest">浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!</div> <div class="ieSuggest">浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!</div>
<div class="google_plus"><g:plusone></g:plusone></div> <div class="google_plus"><g:plusone></g:plusone></div>
<div class="header-text"> <div class="header-text">
<h1><em>zTree v3.5.45 API 文档</em></h1><p></p> <h1><em>zTree v3.5.46 API 文档</em></h1><p></p>
<p>all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。</p> <p>all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。</p>
</div> </div>
<ul class="shortcuts language" style="top:0;"> <ul class="shortcuts language" style="top:0;">
......
...@@ -34,7 +34,7 @@ ...@@ -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="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="google_plus"><g:plusone></g:plusone></div>
<div class="header-text"> <div class="header-text">
<h1><em>zTree v3.5.45 API Document</em></h1><p></p> <h1><em>zTree v3.5.46 API Document</em></h1><p></p>
<p>all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.</p> <p>all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.</p>
</div> </div>
<ul class="shortcuts language" style="top:0;"> <ul class="shortcuts language" style="top:0;">
......
此差异已折叠。
/* /*
* JQuery zTree core * JQuery zTree core
* v3.5.45 * v3.5.46
* http://treejs.cn/ * http://treejs.cn/
* *
* Copyright (c) 2010 Hunter.z * Copyright (c) 2010 Hunter.z
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Licensed same as jquery - MIT License * Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* *
* Date: 2020-11-03 * Date: 2020-11-21
*/ */
(function ($) { (function ($) {
...@@ -1343,8 +1343,9 @@ ...@@ -1343,8 +1343,9 @@
} }
html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level, html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level,
nodeClasses.add ? ' ' + nodeClasses.add.join(' ') : '', nodeClasses.add ? ' ' + nodeClasses.add.join(' ') : '',
"' treeNode", consts.id.A, " onclick=\"", (node.click || ''), "' treeNode", consts.id.A,
"\" ", ((url != null && url.length > 0) ? "href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''), node.click ? " onclick=\"" + node.click + "\"" : "",
((url != null && url.length > 0) ? " href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''),
"'"); "'");
if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) { if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {
html.push("title='", title.replace(/'/g, "&#39;").replace(/</g, '&lt;').replace(/>/g, '&gt;'), "'"); html.push("title='", title.replace(/'/g, "&#39;").replace(/</g, '&lt;').replace(/>/g, '&gt;'), "'");
...@@ -2018,7 +2019,7 @@ ...@@ -2018,7 +2019,7 @@
})(jQuery); })(jQuery);
/* /*
* JQuery zTree excheck * JQuery zTree excheck
* v3.5.45 * v3.5.46
* http://treejs.cn/ * http://treejs.cn/
* *
* Copyright (c) 2010 Hunter.z * Copyright (c) 2010 Hunter.z
...@@ -2026,7 +2027,7 @@ ...@@ -2026,7 +2027,7 @@
* Licensed same as jquery - MIT License * Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* *
* Date: 2020-11-03 * Date: 2020-11-21
*/ */
(function ($) { (function ($) {
...@@ -2670,7 +2671,7 @@ ...@@ -2670,7 +2671,7 @@
})(jQuery); })(jQuery);
/* /*
* JQuery zTree exedit * JQuery zTree exedit
* v3.5.45 * v3.5.46
* http://treejs.cn/ * http://treejs.cn/
* *
* Copyright (c) 2010 Hunter.z * Copyright (c) 2010 Hunter.z
...@@ -2678,7 +2679,7 @@ ...@@ -2678,7 +2679,7 @@
* Licensed same as jquery - MIT License * Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* *
* Date: 2020-11-03 * Date: 2020-11-21
*/ */
(function ($) { (function ($) {
......
此差异已折叠。
/* /*
* JQuery zTree core * JQuery zTree core
* v3.5.45 * v3.5.46
* http://treejs.cn/ * http://treejs.cn/
* *
* Copyright (c) 2010 Hunter.z * Copyright (c) 2010 Hunter.z
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Licensed same as jquery - MIT License * Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* *
* Date: 2020-11-03 * Date: 2020-11-21
*/ */
(function ($) { (function ($) {
...@@ -1343,8 +1343,9 @@ ...@@ -1343,8 +1343,9 @@
} }
html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level, html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level,
nodeClasses.add ? ' ' + nodeClasses.add.join(' ') : '', nodeClasses.add ? ' ' + nodeClasses.add.join(' ') : '',
"' treeNode", consts.id.A, " onclick=\"", (node.click || ''), "' treeNode", consts.id.A,
"\" ", ((url != null && url.length > 0) ? "href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''), node.click ? " onclick=\"" + node.click + "\"" : "",
((url != null && url.length > 0) ? " href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''),
"'"); "'");
if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) { if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {
html.push("title='", title.replace(/'/g, "&#39;").replace(/</g, '&lt;').replace(/>/g, '&gt;'), "'"); html.push("title='", title.replace(/'/g, "&#39;").replace(/</g, '&lt;').replace(/>/g, '&gt;'), "'");
......
此差异已折叠。
/* /*
* JQuery zTree excheck * JQuery zTree excheck
* v3.5.45 * v3.5.46
* http://treejs.cn/ * http://treejs.cn/
* *
* Copyright (c) 2010 Hunter.z * Copyright (c) 2010 Hunter.z
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Licensed same as jquery - MIT License * Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* *
* Date: 2020-11-03 * Date: 2020-11-21
*/ */
(function ($) { (function ($) {
......
/* /*
* JQuery zTree exedit * JQuery zTree exedit
* v3.5.45 * v3.5.46
* http://treejs.cn/ * http://treejs.cn/
* *
* Copyright (c) 2010 Hunter.z * Copyright (c) 2010 Hunter.z
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Licensed same as jquery - MIT License * Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* *
* Date: 2020-11-03 * Date: 2020-11-21
*/ */
(function ($) { (function ($) {
......
/* /*
* JQuery zTree exHideNodes * JQuery zTree exHideNodes
* v3.5.45 * v3.5.46
* http://treejs.cn/ * http://treejs.cn/
* *
* Copyright (c) 2010 Hunter.z * Copyright (c) 2010 Hunter.z
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Licensed same as jquery - MIT License * Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* *
* Date: 2020-11-03 * Date: 2020-11-21
*/ */
(function ($) { (function ($) {
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
</font> </font>
*2020.11.21* v3.5.46
* Add 'onClick' handler only if it's not empty Thanks @afilippov1985
*2020.11.03* v3.5.45 *2020.11.03* v3.5.45
* Support attribute('name' & 'title') dynamic rendering using custom function Thanks @imyuyu * Support attribute('name' & 'title') dynamic rendering using custom function Thanks @imyuyu
......
{ {
"name": "@ztree/ztree_v3", "name": "@ztree/ztree_v3",
"description": "zTree is a multi-functional 'tree plug-ins.' based on jQuery. The main advantages of zTree includes excellent performance, flexible configuration, and the combination of multiple functions.", "description": "zTree is a multi-functional 'tree plug-ins.' based on jQuery. The main advantages of zTree includes excellent performance, flexible configuration, and the combination of multiple functions.",
"version": "3.5.45", "version": "3.5.46",
"homepage": "http://www.treejs.cn/v3/main.php", "homepage": "http://www.treejs.cn/v3/main.php",
"author": "zTree (https://github.com/zTree)", "author": "zTree (https://github.com/zTree)",
"licenses": [ "licenses": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册