Opened 15 years ago
Closed 14 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 15 years ago by
Keywords: | treeview added; TreeView removed |
---|---|
Milestone: | 1.2.4 |
need: | Patch → Review |
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: | enhancement → feature |
Version: | 1.2.3 |
comment:2 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Just add class "open" to the branch that should be open at the start.