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

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

parent e2f6973c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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){
+3 −1
Original line number Diff line number Diff line
@@ -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"