Skip to content

Commit

Permalink
Fix navigation with offline style
Browse files Browse the repository at this point in the history
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 2a9f678)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
  • Loading branch information
e4z9 authored and toreinio committed Aug 29, 2017
1 parent 29d29cb commit fd6c0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/global/qt-html-templates-offline-simple.qdocconf
Expand Up @@ -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 = \
Expand Down

0 comments on commit fd6c0a2

Please sign in to comment.