diff --git a/dist/hierarchy-select.min.js b/dist/hierarchy-select.min.js index 9679526..b710931 100644 --- a/dist/hierarchy-select.min.js +++ b/dist/hierarchy-select.min.js @@ -1 +1 @@ -!function(a){"use strict";function b(a,b){a.offsetHeight+a.scrollTopb.offsetTop&&(a.scrollTop=b.offsetTop)}var c=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.hierarchySelect.defaults,c),this.$button=this.$element.children("button"),this.$selectedLabel=this.$button.children(".selected-label"),this.$menu=this.$element.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$hiddenField=this.$element.children("input"),this.previouslySelected=null,this.init()};c.prototype={constructor:c,init:function(){this.setWidth(),this.setHeight(),this.initSelect(),this.clickListener(),this.searchListener()},initSelect:function(){var a=this.$menuInner.find("li.active:first a");if(a.length){var b=a.parent().data("value");this.$selectedLabel.html(a.html()),this.$hiddenField.val(b)}},setWidth:function(){if("auto"===this.options.width){var a=this.$menu.width();this.$element.css("min-width",a+2+"px")}else this.options.width?this.$element.css("width",this.options.width):this.$element.css("min-width","42px")},setHeight:function(){this.options.height&&(this.$menu.css("overflow","hidden"),this.$menuInner.css({"max-height":this.options.height,"overflow-y":"auto"}))},getText:function(){return this.$selectedLabel.text()},getValue:function(){return this.$hiddenField.val()},setValue:function(a){var b=this.$menuInner.children('li[data-value="'+a+'"]:first');this.setSelected(b)},enable:function(){this.$button.removeAttr("disabled")},disable:function(){this.$button.attr("disabled","disabled")},setSelected:function(a){if(a.length){var b=a.children("a").text(),c=a.data("value");this.$selectedLabel.html(b),this.$hiddenField.val(c),this.$menuInner.find(".active").removeClass("active"),a.addClass("active"),this.$element.trigger("change")}},clickListener:function(){var b=this;this.$element.on("show.bs.dropdown",function(){var c=a(this),d=a(window).scrollTop(),e=a(window).height(),f=c.offset().top-d,g=c.outerHeight(),h=e-f-g,i=b.$menu.outerHeight(!0);hi&&c.toggleClass("dropup",!0)}),this.$element.on("shown.bs.dropdown",function(){b.previouslySelected=b.$menuInner.find(".active"),b.$searchbox.focus()}),this.$element.on("hidden.bs.dropdown",function(){b.$element.toggleClass("dropup",!1)}),this.$menuInner.on("click","li a",function(c){c.preventDefault();var d=a(this),e=d.parent();e.hasClass("disabled")?c.stopPropagation():b.setSelected(e)})},searchListener:function(){function c(a){for(var b=a,c=b.data("level");"object"==typeof b&&b.length>0&&c>1;)c--,b=b.prevAll('li[data-level="'+c+'"]:first'),b.hasClass("hidden")&&(b.toggleClass("disabled",!0),b.removeClass("hidden"))}var d=this;return this.options.search?(this.$searchbox.on("keydown",function(a){var c,e,f;switch(a.keyCode){case 9:a.preventDefault(),a.stopPropagation(),d.$menuInner.click(),d.$button.focus();break;case 13:var g=d.$menuInner.find(".active");setTimeout(function(){d.$button.focus()},0),g&&d.setSelected(g),d.$button.dropdown("toggle");break;case 27:a.preventDefault(),a.stopPropagation(),d.$button.focus(),d.previouslySelected&&d.setSelected(d.previouslySelected),d.$button.dropdown("toggle");break;case 38:a.preventDefault(),c=d.$menuInner.find("li:not(.hidden,.disabled)"),e=d.$menuInner.find(".active"),f=c.index(e),"undefined"!=typeof c[f-1]&&(d.$menuInner.find(".active").removeClass("active"),c[f-1].classList.add("active"),b(d.$menuInner[0],c[f-1]));break;case 40:a.preventDefault(),c=d.$menuInner.find("li:not(.hidden,.disabled)"),e=d.$menuInner.find(".active"),f=c.index(e),"undefined"!=typeof c[f+1]&&(d.$menuInner.find(".active").removeClass("active"),c[f+1]&&(c[f+1].classList.add("active"),b(d.$menuInner[0],c[f+1])))}}),void this.$searchbox.on("input propertychange",function(b){b.preventDefault();var e=d.$searchbox.val().toLowerCase(),f=d.$menuInner.find("li");0===e.length?f.each(function(){var b=a(this);b.toggleClass("disabled",!1),b.toggleClass("hidden",!1)}):f.each(function(){var b=a(this),f=b.children("a").text().toLowerCase();f.indexOf(e)!=-1?(b.toggleClass("disabled",!1),b.toggleClass("hidden",!1),d.options.hierarchy&&c(b)):(b.toggleClass("disabled",!1),b.toggleClass("hidden",!0))})})):void this.$searchbox.parent().toggleClass("hidden",!0)}};var d=function(b){var d,e=Array.prototype.slice.call(arguments,1),f=this.each(function(){var f=a(this),g=f.data("HierarchySelect"),h="object"==typeof b&&b;g||f.data("HierarchySelect",g=new c(this,h)),"string"==typeof b&&(d=g[b].apply(g,e))});return void 0===d?f:d},e=a.fn.hierarchySelect;a.fn.hierarchySelect=d,a.fn.hierarchySelect.defaults={width:"auto",height:"208px",hierarchy:!0,search:!0},a.fn.hierarchySelect.Constructor=c,a.fn.hierarchySelect.noConflict=function(){return a.fn.hierarchySelect=e,this}}(jQuery); \ No newline at end of file +!function(a){"use strict";function b(a,b){a.offsetHeight+a.scrollTopb.offsetTop&&(a.scrollTop=b.offsetTop)}var c=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.hierarchySelect.defaults,c),this.$button=this.$element.children("button"),this.$selectedLabel=this.$button.children(".selected-label"),this.$menu=this.$element.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$hiddenField=this.$element.children("input"),this.previouslySelected=null,this.init()};c.prototype={constructor:c,init:function(){this.setWidth(),this.setHeight(),this.initSelect(),this.clickListener(),this.buttonListener(),this.searchListener()},initSelect:function(){var a=this.$menuInner.find("li.active:first a");if(a.length){var b=a.parent().data("value");this.$selectedLabel.html(a.html()),this.$hiddenField.val(b)}},setWidth:function(){if("auto"===this.options.width){var a=this.$menu.width();this.$element.css("min-width",a+2+"px")}else this.options.width?this.$element.css("width",this.options.width):this.$element.css("min-width","42px")},setHeight:function(){this.options.height&&(this.$menu.css("overflow","hidden"),this.$menuInner.css({"max-height":this.options.height,"overflow-y":"auto"}))},getText:function(){return this.$selectedLabel.text()},getValue:function(){return this.$hiddenField.val()},setValue:function(a){var b=this.$menuInner.children('li[data-value="'+a+'"]:first');this.setSelected(b)},enable:function(){this.$button.removeAttr("disabled")},disable:function(){this.$button.attr("disabled","disabled")},setSelected:function(a){if(a.length){var b=a.children("a").text(),c=a.data("value");this.$selectedLabel.html(b),this.$hiddenField.val(c),this.$menuInner.find(".active").removeClass("active"),a.addClass("active"),this.$element.trigger("change")}},moveUp:function(){var a=this.$menuInner.find("li:not(.hidden,.disabled)"),c=this.$menuInner.find(".active"),d=a.index(c);"undefined"!=typeof a[d-1]&&(this.$menuInner.find(".active").removeClass("active"),a[d-1].classList.add("active"),b(this.$menuInner[0],a[d-1]))},moveDown:function(){var a=this.$menuInner.find("li:not(.hidden,.disabled)"),c=this.$menuInner.find(".active"),d=a.index(c);"undefined"!=typeof a[d+1]&&(this.$menuInner.find(".active").removeClass("active"),a[d+1]&&(a[d+1].classList.add("active"),b(this.$menuInner[0],a[d+1])))},selectItem:function(){var a=this,b=this.$menuInner.find(".active");b.hasClass("hidden")||b.hasClass("disabled")||(setTimeout(function(){a.$button.focus()},0),b&&this.setSelected(b),this.$button.dropdown("toggle"))},clickListener:function(){var b=this;this.$element.on("show.bs.dropdown",function(){var c=a(this),d=a(window).scrollTop(),e=a(window).height(),f=c.offset().top-d,g=c.outerHeight(),h=e-f-g,i=b.$menu.outerHeight(!0);hi&&c.toggleClass("dropup",!0);var j=b.$menuInner.find(".active");j&&setTimeout(function(){var a=j[0],b=j[0].parentNode;b.scrollTop<=a.offsetTop&&b.scrollTop+b.clientHeight>a.offsetTop+a.clientHeight||(a.parentNode.scrollTop=a.offsetTop)},0)}),this.$element.on("shown.bs.dropdown",function(){b.previouslySelected=b.$menuInner.find(".active"),b.$searchbox.focus()}),this.$element.on("hidden.bs.dropdown",function(){b.$element.toggleClass("dropup",!1)}),this.$menuInner.on("click","li a",function(c){c.preventDefault();var d=a(this),e=d.parent();e.hasClass("disabled")?c.stopPropagation():b.setSelected(e)})},buttonListener:function(){var a=this;this.options.search||this.$button.on("keydown",function(b){switch(b.keyCode){case 9:a.$element.hasClass("open")&&b.preventDefault();break;case 13:a.$element.hasClass("open")&&(b.preventDefault(),a.selectItem());break;case 27:a.$element.hasClass("open")&&(b.preventDefault(),b.stopPropagation(),a.$button.focus(),a.previouslySelected&&a.setSelected(a.previouslySelected),a.$button.dropdown("toggle"));break;case 38:a.$element.hasClass("open")&&(b.preventDefault(),b.stopPropagation(),a.moveUp());break;case 40:a.$element.hasClass("open")&&(b.preventDefault(),b.stopPropagation(),a.moveDown())}})},searchListener:function(){function b(a){for(var b=a,c=b.data("level");"object"==typeof b&&b.length>0&&c>1;)c--,b=b.prevAll('li[data-level="'+c+'"]:first'),b.hasClass("hidden")&&(b.toggleClass("disabled",!0),b.removeClass("hidden"))}var c=this;return this.options.search?(this.$searchbox.on("keydown",function(a){switch(a.keyCode){case 9:a.preventDefault(),a.stopPropagation(),c.$menuInner.click(),c.$button.focus();break;case 13:c.selectItem();break;case 27:a.preventDefault(),a.stopPropagation(),c.$button.focus(),c.previouslySelected&&c.setSelected(c.previouslySelected),c.$button.dropdown("toggle");break;case 38:a.preventDefault(),c.moveUp();break;case 40:a.preventDefault(),c.moveDown()}}),void this.$searchbox.on("input propertychange",function(d){d.preventDefault();var e=c.$searchbox.val().toLowerCase(),f=c.$menuInner.find("li");0===e.length?f.each(function(){var b=a(this);b.toggleClass("disabled",!1),b.toggleClass("hidden",!1)}):f.each(function(){var d=a(this),f=d.children("a").text().toLowerCase();f.indexOf(e)!=-1?(d.toggleClass("disabled",!1),d.toggleClass("hidden",!1),c.options.hierarchy&&b(d)):(d.toggleClass("disabled",!1),d.toggleClass("hidden",!0))})})):void this.$searchbox.parent().toggleClass("hidden",!0)}};var d=function(b){var d,e=Array.prototype.slice.call(arguments,1),f=this.each(function(){var f=a(this),g=f.data("HierarchySelect"),h="object"==typeof b&&b;g||f.data("HierarchySelect",g=new c(this,h)),"string"==typeof b&&(d=g[b].apply(g,e))});return void 0===d?f:d},e=a.fn.hierarchySelect;a.fn.hierarchySelect=d,a.fn.hierarchySelect.defaults={width:"auto",height:"208px",hierarchy:!0,search:!0},a.fn.hierarchySelect.Constructor=c,a.fn.hierarchySelect.noConflict=function(){return a.fn.hierarchySelect=e,this}}(jQuery); \ No newline at end of file diff --git a/docs/dist/hierarchy-select.min.js b/docs/dist/hierarchy-select.min.js index 9679526..b710931 100644 --- a/docs/dist/hierarchy-select.min.js +++ b/docs/dist/hierarchy-select.min.js @@ -1 +1 @@ -!function(a){"use strict";function b(a,b){a.offsetHeight+a.scrollTopb.offsetTop&&(a.scrollTop=b.offsetTop)}var c=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.hierarchySelect.defaults,c),this.$button=this.$element.children("button"),this.$selectedLabel=this.$button.children(".selected-label"),this.$menu=this.$element.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$hiddenField=this.$element.children("input"),this.previouslySelected=null,this.init()};c.prototype={constructor:c,init:function(){this.setWidth(),this.setHeight(),this.initSelect(),this.clickListener(),this.searchListener()},initSelect:function(){var a=this.$menuInner.find("li.active:first a");if(a.length){var b=a.parent().data("value");this.$selectedLabel.html(a.html()),this.$hiddenField.val(b)}},setWidth:function(){if("auto"===this.options.width){var a=this.$menu.width();this.$element.css("min-width",a+2+"px")}else this.options.width?this.$element.css("width",this.options.width):this.$element.css("min-width","42px")},setHeight:function(){this.options.height&&(this.$menu.css("overflow","hidden"),this.$menuInner.css({"max-height":this.options.height,"overflow-y":"auto"}))},getText:function(){return this.$selectedLabel.text()},getValue:function(){return this.$hiddenField.val()},setValue:function(a){var b=this.$menuInner.children('li[data-value="'+a+'"]:first');this.setSelected(b)},enable:function(){this.$button.removeAttr("disabled")},disable:function(){this.$button.attr("disabled","disabled")},setSelected:function(a){if(a.length){var b=a.children("a").text(),c=a.data("value");this.$selectedLabel.html(b),this.$hiddenField.val(c),this.$menuInner.find(".active").removeClass("active"),a.addClass("active"),this.$element.trigger("change")}},clickListener:function(){var b=this;this.$element.on("show.bs.dropdown",function(){var c=a(this),d=a(window).scrollTop(),e=a(window).height(),f=c.offset().top-d,g=c.outerHeight(),h=e-f-g,i=b.$menu.outerHeight(!0);hi&&c.toggleClass("dropup",!0)}),this.$element.on("shown.bs.dropdown",function(){b.previouslySelected=b.$menuInner.find(".active"),b.$searchbox.focus()}),this.$element.on("hidden.bs.dropdown",function(){b.$element.toggleClass("dropup",!1)}),this.$menuInner.on("click","li a",function(c){c.preventDefault();var d=a(this),e=d.parent();e.hasClass("disabled")?c.stopPropagation():b.setSelected(e)})},searchListener:function(){function c(a){for(var b=a,c=b.data("level");"object"==typeof b&&b.length>0&&c>1;)c--,b=b.prevAll('li[data-level="'+c+'"]:first'),b.hasClass("hidden")&&(b.toggleClass("disabled",!0),b.removeClass("hidden"))}var d=this;return this.options.search?(this.$searchbox.on("keydown",function(a){var c,e,f;switch(a.keyCode){case 9:a.preventDefault(),a.stopPropagation(),d.$menuInner.click(),d.$button.focus();break;case 13:var g=d.$menuInner.find(".active");setTimeout(function(){d.$button.focus()},0),g&&d.setSelected(g),d.$button.dropdown("toggle");break;case 27:a.preventDefault(),a.stopPropagation(),d.$button.focus(),d.previouslySelected&&d.setSelected(d.previouslySelected),d.$button.dropdown("toggle");break;case 38:a.preventDefault(),c=d.$menuInner.find("li:not(.hidden,.disabled)"),e=d.$menuInner.find(".active"),f=c.index(e),"undefined"!=typeof c[f-1]&&(d.$menuInner.find(".active").removeClass("active"),c[f-1].classList.add("active"),b(d.$menuInner[0],c[f-1]));break;case 40:a.preventDefault(),c=d.$menuInner.find("li:not(.hidden,.disabled)"),e=d.$menuInner.find(".active"),f=c.index(e),"undefined"!=typeof c[f+1]&&(d.$menuInner.find(".active").removeClass("active"),c[f+1]&&(c[f+1].classList.add("active"),b(d.$menuInner[0],c[f+1])))}}),void this.$searchbox.on("input propertychange",function(b){b.preventDefault();var e=d.$searchbox.val().toLowerCase(),f=d.$menuInner.find("li");0===e.length?f.each(function(){var b=a(this);b.toggleClass("disabled",!1),b.toggleClass("hidden",!1)}):f.each(function(){var b=a(this),f=b.children("a").text().toLowerCase();f.indexOf(e)!=-1?(b.toggleClass("disabled",!1),b.toggleClass("hidden",!1),d.options.hierarchy&&c(b)):(b.toggleClass("disabled",!1),b.toggleClass("hidden",!0))})})):void this.$searchbox.parent().toggleClass("hidden",!0)}};var d=function(b){var d,e=Array.prototype.slice.call(arguments,1),f=this.each(function(){var f=a(this),g=f.data("HierarchySelect"),h="object"==typeof b&&b;g||f.data("HierarchySelect",g=new c(this,h)),"string"==typeof b&&(d=g[b].apply(g,e))});return void 0===d?f:d},e=a.fn.hierarchySelect;a.fn.hierarchySelect=d,a.fn.hierarchySelect.defaults={width:"auto",height:"208px",hierarchy:!0,search:!0},a.fn.hierarchySelect.Constructor=c,a.fn.hierarchySelect.noConflict=function(){return a.fn.hierarchySelect=e,this}}(jQuery); \ No newline at end of file +!function(a){"use strict";function b(a,b){a.offsetHeight+a.scrollTopb.offsetTop&&(a.scrollTop=b.offsetTop)}var c=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.hierarchySelect.defaults,c),this.$button=this.$element.children("button"),this.$selectedLabel=this.$button.children(".selected-label"),this.$menu=this.$element.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$hiddenField=this.$element.children("input"),this.previouslySelected=null,this.init()};c.prototype={constructor:c,init:function(){this.setWidth(),this.setHeight(),this.initSelect(),this.clickListener(),this.buttonListener(),this.searchListener()},initSelect:function(){var a=this.$menuInner.find("li.active:first a");if(a.length){var b=a.parent().data("value");this.$selectedLabel.html(a.html()),this.$hiddenField.val(b)}},setWidth:function(){if("auto"===this.options.width){var a=this.$menu.width();this.$element.css("min-width",a+2+"px")}else this.options.width?this.$element.css("width",this.options.width):this.$element.css("min-width","42px")},setHeight:function(){this.options.height&&(this.$menu.css("overflow","hidden"),this.$menuInner.css({"max-height":this.options.height,"overflow-y":"auto"}))},getText:function(){return this.$selectedLabel.text()},getValue:function(){return this.$hiddenField.val()},setValue:function(a){var b=this.$menuInner.children('li[data-value="'+a+'"]:first');this.setSelected(b)},enable:function(){this.$button.removeAttr("disabled")},disable:function(){this.$button.attr("disabled","disabled")},setSelected:function(a){if(a.length){var b=a.children("a").text(),c=a.data("value");this.$selectedLabel.html(b),this.$hiddenField.val(c),this.$menuInner.find(".active").removeClass("active"),a.addClass("active"),this.$element.trigger("change")}},moveUp:function(){var a=this.$menuInner.find("li:not(.hidden,.disabled)"),c=this.$menuInner.find(".active"),d=a.index(c);"undefined"!=typeof a[d-1]&&(this.$menuInner.find(".active").removeClass("active"),a[d-1].classList.add("active"),b(this.$menuInner[0],a[d-1]))},moveDown:function(){var a=this.$menuInner.find("li:not(.hidden,.disabled)"),c=this.$menuInner.find(".active"),d=a.index(c);"undefined"!=typeof a[d+1]&&(this.$menuInner.find(".active").removeClass("active"),a[d+1]&&(a[d+1].classList.add("active"),b(this.$menuInner[0],a[d+1])))},selectItem:function(){var a=this,b=this.$menuInner.find(".active");b.hasClass("hidden")||b.hasClass("disabled")||(setTimeout(function(){a.$button.focus()},0),b&&this.setSelected(b),this.$button.dropdown("toggle"))},clickListener:function(){var b=this;this.$element.on("show.bs.dropdown",function(){var c=a(this),d=a(window).scrollTop(),e=a(window).height(),f=c.offset().top-d,g=c.outerHeight(),h=e-f-g,i=b.$menu.outerHeight(!0);hi&&c.toggleClass("dropup",!0);var j=b.$menuInner.find(".active");j&&setTimeout(function(){var a=j[0],b=j[0].parentNode;b.scrollTop<=a.offsetTop&&b.scrollTop+b.clientHeight>a.offsetTop+a.clientHeight||(a.parentNode.scrollTop=a.offsetTop)},0)}),this.$element.on("shown.bs.dropdown",function(){b.previouslySelected=b.$menuInner.find(".active"),b.$searchbox.focus()}),this.$element.on("hidden.bs.dropdown",function(){b.$element.toggleClass("dropup",!1)}),this.$menuInner.on("click","li a",function(c){c.preventDefault();var d=a(this),e=d.parent();e.hasClass("disabled")?c.stopPropagation():b.setSelected(e)})},buttonListener:function(){var a=this;this.options.search||this.$button.on("keydown",function(b){switch(b.keyCode){case 9:a.$element.hasClass("open")&&b.preventDefault();break;case 13:a.$element.hasClass("open")&&(b.preventDefault(),a.selectItem());break;case 27:a.$element.hasClass("open")&&(b.preventDefault(),b.stopPropagation(),a.$button.focus(),a.previouslySelected&&a.setSelected(a.previouslySelected),a.$button.dropdown("toggle"));break;case 38:a.$element.hasClass("open")&&(b.preventDefault(),b.stopPropagation(),a.moveUp());break;case 40:a.$element.hasClass("open")&&(b.preventDefault(),b.stopPropagation(),a.moveDown())}})},searchListener:function(){function b(a){for(var b=a,c=b.data("level");"object"==typeof b&&b.length>0&&c>1;)c--,b=b.prevAll('li[data-level="'+c+'"]:first'),b.hasClass("hidden")&&(b.toggleClass("disabled",!0),b.removeClass("hidden"))}var c=this;return this.options.search?(this.$searchbox.on("keydown",function(a){switch(a.keyCode){case 9:a.preventDefault(),a.stopPropagation(),c.$menuInner.click(),c.$button.focus();break;case 13:c.selectItem();break;case 27:a.preventDefault(),a.stopPropagation(),c.$button.focus(),c.previouslySelected&&c.setSelected(c.previouslySelected),c.$button.dropdown("toggle");break;case 38:a.preventDefault(),c.moveUp();break;case 40:a.preventDefault(),c.moveDown()}}),void this.$searchbox.on("input propertychange",function(d){d.preventDefault();var e=c.$searchbox.val().toLowerCase(),f=c.$menuInner.find("li");0===e.length?f.each(function(){var b=a(this);b.toggleClass("disabled",!1),b.toggleClass("hidden",!1)}):f.each(function(){var d=a(this),f=d.children("a").text().toLowerCase();f.indexOf(e)!=-1?(d.toggleClass("disabled",!1),d.toggleClass("hidden",!1),c.options.hierarchy&&b(d)):(d.toggleClass("disabled",!1),d.toggleClass("hidden",!0))})})):void this.$searchbox.parent().toggleClass("hidden",!0)}};var d=function(b){var d,e=Array.prototype.slice.call(arguments,1),f=this.each(function(){var f=a(this),g=f.data("HierarchySelect"),h="object"==typeof b&&b;g||f.data("HierarchySelect",g=new c(this,h)),"string"==typeof b&&(d=g[b].apply(g,e))});return void 0===d?f:d},e=a.fn.hierarchySelect;a.fn.hierarchySelect=d,a.fn.hierarchySelect.defaults={width:"auto",height:"208px",hierarchy:!0,search:!0},a.fn.hierarchySelect.Constructor=c,a.fn.hierarchySelect.noConflict=function(){return a.fn.hierarchySelect=e,this}}(jQuery); \ No newline at end of file