Bug Tracker

Opened 12 years ago

Closed 11 years ago

#2362 closed feature (worksforme)

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

Change History (2)

comment:1 Changed 12 years ago by joern

Keywords: treeview added; TreeView removed
Milestone: 1.2.4
need: PatchReview
Owner: set to 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

comment:2 Changed 11 years ago by joern

Resolution: worksforme
Status: newclosed

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

Note: See TracTickets for help on using tickets.