Skip to main content

Bug Tracker

Side navigation

#2563 closed enhancement (fixed)

Opened March 19, 2008 09:30PM UTC

Closed October 12, 2009 11:53PM UTC

[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?

Attachments (0)
Change History (3)

Changed March 19, 2008 09:32PM UTC by rbuc comment:1

similar problem as #2360?

Changed March 21, 2008 04:13AM UTC by rbuc comment:2

fixed with r5100

Changed October 12, 2009 11:53PM UTC by dmethvin comment:3

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 .