On Mon, Jan 13, 2014 at 03:54:34PM -0500, Richard Hipp wrote:
> On Mon, Jan 13, 2014 at 3:51 PM, Martin Gagnon <eme...@gmail.com> wrote:
> 
> >
> > I like very much the new tree view but there's one thing that I found a
> > bit annoying. After clicking on a file that is deep in the directory
> > structure, the tree become all collapsed again after pressing the back
> > button.
> >
> 
> Chrome does that.  Firefox, otoh, keeps the tree expanded.  I don't know
> why and don't know if there is anything we can do about it in
> Javascript/CSS.
> 
> -- 
> D. Richard Hipp
> d...@sqlite.org

The easiest way would probably be to manipulate the url has as you
expand folders.

So as an example if you expand ajax the url would become:
/index.html/tree?ci=trunk#ajax then another level in it would be
/index.html/tree?ci=trunk#ajax/cgi-bin.

Then based on the hash in js you could expand the folder structure on
load.

-- 
James Turner
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to