Ticket #2563 (closed enhancement: fixed)
[treeview] Folders only expand, no linking possible
| Reported by: | rbuc | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.2.4 |
| Component: | plugin | Version: | 1.2.3 |
| Keywords: | treeview | Cc: | |
| Blocking: | Blocked by: |
Description
The text in folders with children is always bind to expand/collapse its children. In some cases one would only want the plus/minus-sign to expand/collapse the tree. It should be possible to set text and a link as folder text. At the moment, if I put an <a>-tag inside a folder text, a click on it expands/collapses the folder AND opens the link.
Commenting out line 66 disables expanding/collapsing when clicking on the folder text. Plus-sign still works.
applyClasses: function(settings, toggler) {
this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event) {
//toggler.apply($(this).next());
}).add( $("a", this) ).hoverClass();
Maybe one could implement a new option?
Change History
comment:3 Changed 4 years ago by dmethvin
- Status changed from new to closed
- Resolution set to fixed
This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

similar problem as #2360?