Bug Tracker

Modify

Ticket #3324 (closed enhancement: invalid)

Opened 5 years ago

Last modified 4 years ago

[treeview] multi-level async

Reported by: Nathan Owned by: joern
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: treeview async Cc: Nathan
Blocking: Blocked by:

Description

I have found two limitations to the current treeview.async when loading multi-level async branches. Working update is attached.

Issues:

  1. If an async branch is loaded with {expanded: false}, the closed class is not applied, resulting in an empty branch being left open.

I have update:

if (this.expanded) {

current.addClass("open");

}

to

if (this.expanded) {

current.addClass("open"); } else { current.addClass("closed"); }

  1. If a async loaded branch has async itself, with hasChildren, the placeholder item remains visible and the secondary branch is not loaded until the item is toggled.

I have update the placeholder generating code to:

if (!this.expanded) {

current.addClass("hasChildren"); createNode.call({

text:"placeholder", id:"placeholder", children:[]

}, branch);

} else {

load(settings, this.id, branch, container);

}

Attachments

jquery.treeview.async.js Download (2.1 KB) - added by Nathan 5 years ago.
Update for mulit-level async loading.

Change History

Changed 5 years ago by Nathan

Update for mulit-level async loading.

comment:1 Changed 5 years ago by flesler

  • Cc Nathan added
  • Keywords treeview added
  • Component changed from ajax to plugin
  • Owner set to joern

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.