299
技術社區[雲棲]
jQuery插件treeview點擊節點名稱不展開、收縮節點
修改jquery.treeview.js文件中的applyClasses方法(注釋掉兩行代碼):
修改後的applyClasses方法如下:
applyClasses: function(settings, toggler) {
/*
this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event) {
toggler.apply($(this).next());
}).add( $("a", this) ).hoverClass();
*/
if (!settings.prerendered) {
// handle closed ones first
this.filter(":has(>ul:hidden)")
.addClass(CLASSES.expandable)
.replaceClass(CLASSES.last, CLASSES.lastExpandable);
// handle ope
最後更新:2017-04-03 07:57:05