[jQuery] [TreeView] added active class

[jQuery] [TreeView] added active class


Hi Joern,
A tinsy change in treeview allows for an "active" class to open the
tree:
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.