summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-08-03 10:04:46 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-08-03 10:04:46 (GMT)
commitf90a787e478c855beddcb3a626177fa11fb9244b (patch)
tree02fc2176339c969bf1f17af77b359513fb3377a4
parente2f6973ca0c8d5ab1f5bd28a3cd89b58fff13d71 (diff)
downloadDoxygen-f90a787e478c855beddcb3a626177fa11fb9244b.zip
Doxygen-f90a787e478c855beddcb3a626177fa11fb9244b.tar.gz
Doxygen-f90a787e478c855beddcb3a626177fa11fb9244b.tar.bz2
Delayed expanding the HTML navigation tree until after the page has loaded
-rw-r--r--src/navtree.js4
-rw-r--r--src/navtree_js.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/navtree.js b/src/navtree.js
index 3d8134a..1a46df4 100644
--- a/src/navtree.js
+++ b/src/navtree.js
@@ -464,7 +464,9 @@ function initNavTree(toroot,relpath)
navSync.click(function(){ toggleSyncButton(relpath); });
}
- navTo(o,toroot,window.location.hash,relpath);
+ $(window).load(function(){
+ navTo(o,toroot,window.location.hash,relpath);
+ });
$(window).bind('hashchange', function(){
if (window.location.hash && window.location.hash.length>1){
diff --git a/src/navtree_js.h b/src/navtree_js.h
index 2e4df6a..1ad83d3 100644
--- a/src/navtree_js.h
+++ b/src/navtree_js.h
@@ -464,7 +464,9 @@
" navSync.click(function(){ toggleSyncButton(relpath); });\n"
" }\n"
"\n"
-" navTo(o,toroot,window.location.hash,relpath);\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"