Jquery treeview
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());
精彩评论