diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-06-26 15:52:59 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2017-07-03 10:08:33 +0000 |
commit | 2a9f678f59ce795581ae5af4a57cef13b9cc14b7 (patch) | |
tree | 397e7efef4b0a9a80c8ff738a56a98031f2323b7 /doc/global | |
parent | 3e8ebea95b634c7ded9ee0b884768155e9e7f686 (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>
Diffstat (limited to 'doc/global')
-rw-r--r-- | doc/global/qt-html-templates-offline-simple.qdocconf | 2 |
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 = \ |