summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-06-26 15:52:59 +0200
committerTopi Reiniƶ <topi.reinio@qt.io>2017-08-29 09:54:57 +0000
commitfd6c0a29040e60c6596c1fd19c06eb04d38043bb (patch)
treeb1655997c6fc0dcf8040f2bac20bbec60bdd7247
parent29d29cb250c043eeefbac59f94813dcb5e21ec03 (diff)
Fix navigation with offline style
When the switching to the non-simple offline style is done after document load, the navigation to anchors completely breaks. So, do the switch without the additional delay. Task-number: QTCREATORBUG-18448 Change-Id: I5abbc3bbe1c743d2a5e493bb9e0916c5d092942a Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io> (cherry picked from commit 2a9f678f59ce795581ae5af4a57cef13b9cc14b7) Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
-rw-r--r--doc/global/qt-html-templates-offline-simple.qdocconf2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/global/qt-html-templates-offline-simple.qdocconf b/doc/global/qt-html-templates-offline-simple.qdocconf
index 4a65cc3c57..1fea752a16 100644
--- a/doc/global/qt-html-templates-offline-simple.qdocconf
+++ b/doc/global/qt-html-templates-offline-simple.qdocconf
@@ -6,7 +6,7 @@ qhp.extraFiles += style/offline-simple.css
HTML.headerstyles = \
" <link rel=\"stylesheet\" type=\"text/css\" href=\"style/offline-simple.css\" />\n" \
" <script type=\"text/javascript\">\n" \
- " window.onload = function(){document.getElementsByTagName(\"link\").item(0).setAttribute(\"href\", \"style/offline.css\");};\n" \
+ " document.getElementsByTagName(\"link\").item(0).setAttribute(\"href\", \"style/offline.css\");\n" \
" </script>\n"
HTML.postheader = \