Commit f90a787e authored by Dimitri van Heesch's avatar Dimitri van Heesch

Delayed expanding the HTML navigation tree until after the page has loaded

parent e2f6973c
......@@ -464,7 +464,9 @@ function initNavTree(toroot,relpath)
navSync.click(function(){ toggleSyncButton(relpath); });
}
$(window).load(function(){
navTo(o,toroot,window.location.hash,relpath);
});
$(window).bind('hashchange', function(){
if (window.location.hash && window.location.hash.length>1){
......
......@@ -464,7 +464,9 @@
" navSync.click(function(){ toggleSyncButton(relpath); });\n"
" }\n"
"\n"
" $(window).load(function(){\n"
" navTo(o,toroot,window.location.hash,relpath);\n"
" });\n"
"\n"
" $(window).bind('hashchange', function(){\n"
" if (window.location.hash && window.location.hash.length>1){\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment