天天看點

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

繼續閱讀