Bug Tracker

Opened 12 years ago

Closed 10 years ago

#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:
Blocked by: Blocking:

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 (3)

comment:1 Changed 12 years ago by rbuc

similar problem as #2360?

comment:2 Changed 12 years ago by rbuc

fixed with r5100

comment:3 Changed 10 years ago by dmethvin

Resolution: fixed
Status: newclosed

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 .

Note: See TracTickets for help on using tickets.