diff --git a/bower.json b/bower.json index ad4d863d..8b0ddf81 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "jquery.fancytree", "description": "JavaScript tree view / tree grid plugin with support for keyboard, inline editing, filtering, checkboxes, drag'n'drop, and lazy loading", - "version": "2.32.1-0", + "version": "2.33.0", "main": [ "dist/jquery.fancytree-all-deps.min.js" ], diff --git a/dist/jquery.fancytree-all-deps.js b/dist/jquery.fancytree-all-deps.js index 0bc45dac..37e47013 100644 --- a/dist/jquery.fancytree-all-deps.js +++ b/dist/jquery.fancytree-all-deps.js @@ -1,4 +1,4 @@ -/*! jQuery Fancytree Plugin - 2.32.0 - 2019-09-10T07:42:12Z +/*! jQuery Fancytree Plugin - 2.33.0 - 2019-10-29T08:00:07Z * https://github.com/mar10/fancytree * Copyright (c) 2019 Martin Wendt; Licensed MIT */ @@ -1365,8 +1365,8 @@ var uniqueId = $.fn.extend( { * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.32.0 - * @date 2019-09-10T07:42:12Z + * @version 2.33.0 + * @date 2019-10-29T08:00:07Z */ /** Core Fancytree module. @@ -2947,15 +2947,7 @@ var uniqueId = $.fn.extend( { // i.e. return false for nodes (but not parents) that are hidden // by a filter if (hasFilter && !this.match && !this.subMatchCount) { - this.debug( - "isVisible: HIDDEN (" + - hasFilter + - ", " + - this.match + - ", " + - this.match + - ")" - ); + // this.debug( "isVisible: HIDDEN (" + hasFilter + ", " + this.match + ", " + this.match + ")" ); return false; } @@ -2963,7 +2955,7 @@ var uniqueId = $.fn.extend( { n = parents[i]; if (!n.expanded) { - this.debug("isVisible: HIDDEN (parent collapsed)"); + // this.debug("isVisible: HIDDEN (parent collapsed)"); return false; } // if (hasFilter && !n.match && !n.subMatchCount) { @@ -2971,7 +2963,7 @@ var uniqueId = $.fn.extend( { // return false; // } } - this.debug("isVisible: VISIBLE"); + // this.debug("isVisible: VISIBLE"); return true; }, /** Deprecated. @@ -4788,6 +4780,10 @@ var uniqueId = $.fn.extend( { }, /** * Return an array of selected nodes. + * + * Note: you cannot send this result via Ajax directly. Instead the + * node object need to be converted to plain objects, for example + * by using `$.map()` and `node.toDict()`. * @param {boolean} [stopOnParents=false] only return the topmost selected * node (useful with selectMode 3) * @returns {FancytreeNode[]} @@ -6714,7 +6710,13 @@ var uniqueId = $.fn.extend( { dfd.done(function() { var lastChild = node.getLastChild(); - if (flag && opts.autoScroll && !noAnimation && lastChild) { + if ( + flag && + opts.autoScroll && + !noAnimation && + lastChild && + tree._enableUpdate + ) { // Scroll down to last child, but keep current node visible lastChild .scrollIntoView(true, { topNode: node }) @@ -6773,9 +6775,7 @@ var uniqueId = $.fn.extend( { $(node.li).addClass(cn.animating); // #717 if ($.isFunction($(node.ul)[effect.effect])) { - tree.debug( - "use jquery." + effect.effect + " method" - ); + // tree.debug( "use jquery." + effect.effect + " method" ); $(node.ul)[effect.effect]({ duration: effect.duration, always: function() { @@ -7263,16 +7263,30 @@ var uniqueId = $.fn.extend( { type = $container.data("type") || "html"; switch (type) { case "html": - $ul = $container.find(">ul").first(); - $ul.addClass( - "ui-fancytree-source fancytree-helper-hidden" - ); - source = $.ui.fancytree.parseHtml($ul); - // allow to init tree.data.foo from