dipidi: Have you found a solution to yours?
Regards, Victor
On 5 Apr., 18:23, "dip...@gmail.com" <dip...@gmail.com> wrote:
> [SORRY!, this is a proper message, the first one i forgot to add a
> topic]
>
> hey all,
>
> having a problem with treeview by Jörn Zaefferer.
>
> I load the content from json, but i losepersistanceof location. i
> get the tree folded and i don't know what branch i'm on to.
>
> i managed to fix this by pasting the location code in .async.js,
>
> var sm = current.find("a").filter(function()
> { return
> this.href.toLowerCase() == location.href.toLowerCase(); });
> if ( sm.length ) {
> sm.addClass("selected").parents
> ("ul, li").add( sm.next() ).show
> ();
> }
>
> but now the branch is marked as selected, however the tree is not open
> (all folded)
>
> any ideas?
No comments:
Post a Comment