Bug Tracker

Modify

Ticket #2563 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

[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:1 Changed 5 years ago by rbuc

similar problem as #2360?

comment:2 Changed 5 years ago by rbuc

fixed with r5100

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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.