Skip to main content

Bug Tracker

Side navigation

#3324 closed enhancement (invalid)

Opened September 04, 2008 03:46PM UTC

Closed October 13, 2009 12:10AM UTC

[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
Blocked by: Blocking:
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");

}

2. 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 (1)
  • jquery.treeview.async.js (2.1 KB) - added by Nathan September 04, 2008 03:47PM UTC.

    Update for mulit-level async loading.

Change History (2)

Changed September 04, 2008 08:50PM UTC by flesler comment:1

cc: → Nathan
component: ajaxplugin
keywords: asynctreeview async
owner: → joern

Changed October 13, 2009 12:10AM UTC by dmethvin comment:2

resolution: → invalid
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 .