There is currently no way to toggle the folders opening/closing when clicking on the label element. It only works when clicking the folder's icon tag with the class of 'jqtree-toggler'.
I threw together a hack that satisfies my purposes, but this probably isn't the best way.
Add the following right before the if ($button.length) { (line1383) of the JqTreeWidget.prototype._click function:
// Hack to open/close the tree when the folder label is clicked instead of just the icon
if (!$button.length){
$button = $target.closest('.jqtree-element');
}
There is currently no way to toggle the folders opening/closing when clicking on the label element. It only works when clicking the folder's icon tag with the class of 'jqtree-toggler'.
I threw together a hack that satisfies my purposes, but this probably isn't the best way.
Add the following right before the if ($button.length) { (line1383) of the JqTreeWidget.prototype._click function:
// Hack to open/close the tree when the folder label is clicked instead of just the icon if (!$button.length){ $button = $target.closest('.jqtree-element'); }