开发者

Jquery treeview

开发者 https://www.devze.com 2023-01-05 03:50 出处:网络
I am using jquery.bassistance.de/treeview/ for my application. Can I expand the nodes only on clicking the \'+\" icon. c开发者_StackOverflow中文版urrenty, even when I click the text which comes after

I am using jquery.bassistance.de/treeview/ for my application. Can I expand the nodes only on clicking the '+" icon. c开发者_StackOverflow中文版urrenty, even when I click the text which comes after the '+' symbol the tree expands.


open jquery.treeview.js

find applyClasses: function(settings, toggler) { // TODO use event delegation this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click.treeview").bind("click.treeview", function(event) { // don't handle click events on children, eg. checkboxes if (this == event.target) toggler.apply($(this).next()); }).add($("a", this)).hoverClass();

and comment toggler.apply($(this).next());

0

精彩评论

暂无评论...
验证码 换一张
取 消