Reputation: 1691
I am using jquery.bassistance.de/treeview/ for my application. Can I expand the nodes only on clicking the '+" icon. currenty, even when I click the text which comes after the '+' symbol the tree expands.
Upvotes: 3
Views: 499
Reputation: 11
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());
Upvotes: 1