Skip to main content

Bug Tracker

Side navigation

#2362 closed feature (worksforme)

Opened February 18, 2008 11:02PM UTC

Closed June 10, 2009 09:07AM UTC

[treeview] A change in treeview to allow for an "active" class to open the tree.

Reported by: asozzi Owned by: joern
Priority: major Milestone:
Component: plugin Version:
Keywords: treeview Cc:
Blocked by: Blocking:
Description

under:

switch(settings.persist) {

I just added:

case "active":
        var current = this.find(".cur_cat");
        if ( current.length ) {
                current.addClass("selected").parents("ul,
li").add( current.next() ).show();
        }
break;

That seems to do the trick. Unfortunately I don't quite know how to

pass the category name "cur_cat" into the options. But for me

hardcoded is OK right now.

Attachments (0)
Change History (2)

Changed February 19, 2008 08:00PM UTC by joern comment:1

keywords: TreeViewtreeview
milestone: 1.2.4
need: PatchReview
owner: → joern
summary: A change in treeview to allow for an "active" class to open the tree.[treeview] A change in treeview to allow for an "active" class to open the tree.
type: enhancementfeature
version: 1.2.3

Changed June 10, 2009 09:07AM UTC by joern comment:2

resolution: → worksforme
status: newclosed

Just add class "open" to the branch that should be open at the start.