芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.8/legacy/js/treeselectmenu.min.js
jQuery((function(e){var t=e("div#treeselectmenu").html(),l=void 0!==document.dir?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir");e(".treeselect li").each((function(){$li=e(this),$div=$li.find("div.treeselect-item:first"),$li.prepend('
'),$li.find("ul.treeselect-sub").length&&($li.find("span.icon-").addClass("treeselect-toggle icon-chevron-down"),$div.find("label:first").after(t),$li.find("ul.treeselect-sub ul.treeselect-sub").length||$li.find("div.treeselect-menu-expand").remove())})),e("span.treeselect-toggle").click((function(){if($i=e(this),"rtl"===l)var t="icon-chevron-left";else t="icon-chevron-right";$i.parent().find("ul.treeselect-sub").is(":visible")?($i.removeClass("icon-chevron-down").addClass(t),$i.parent().find("ul.treeselect-sub").hide(),$i.parent().find("ul.treeselect-sub i.treeselect-toggle").removeClass("icon-chevron-down").addClass(t)):($i.removeClass(t).addClass("icon-chevron-down"),$i.parent().find("ul.treeselect-sub").show(),$i.parent().find("ul.treeselect-sub i.treeselect-toggle").removeClass(t).addClass("icon-chevron-down"))})),e("#treeselectfilter").keyup((function(){var t=e(this).val().toLowerCase(),l=0;e("#noresultsfound").hide();var c=e(".treeselect li");c.each((function(){-1==e(this).text().toLowerCase().indexOf(t)?(e(this).hide(),l++):e(this).show()})),l==c.length&&e("#noresultsfound").show()})),e("#treeCheckAll").click((function(){e(".treeselect input").attr("checked","checked")})),e("#treeUncheckAll").click((function(){e(".treeselect input").attr("checked",!1)})),e("#treeExpandAll").click((function(){e("ul.treeselect ul.treeselect-sub").show(),e("ul.treeselect i.treeselect-toggle").removeClass("icon-chevron-right").addClass("icon-chevron-down")})),e("#treeCollapseAll").click((function(){e("ul.treeselect ul.treeselect-sub").hide(),e("ul.treeselect i.treeselect-toggle").removeClass("icon-chevron-down").addClass("icon-chevron-right")})),e("a.checkall").click((function(){e(this).parents().eq(4).find("ul.treeselect-sub input").attr("checked","checked")})),e("a.uncheckall").click((function(){e(this).parents().eq(4).find("ul.treeselect-sub input").attr("checked",!1)})),e("a.expandall").click((function(){var t=e(this).parents().eq(6);t.find("ul.treeselect-sub").show(),t.find("ul.treeselect-sub i.treeselect-toggle").removeClass("icon-chevron-right").addClass("icon-chevron-down")})),e("a.collapseall").click((function(){var t=e(this).parents().eq(6);t.find("li ul.treeselect-sub").hide(),t.find("li i.treeselect-toggle").removeClass("icon-chevron-down").addClass("icon-chevron-right")}))}));