diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-06-04 20:32:35 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2017-06-05 01:35:21 +0200 |
commit | fadaa62d1dd4757a355adb68f58b0a77b5e854b5 (patch) | |
tree | 96a41f64dd901ae6f9a0d589ee956dd0e970eeb9 /source/help.js | |
parent | ac24ea0b5c1d2b453b83cbc8f93e99b6955416a7 (diff) |
More work on help pages in browsers
Now works offline with file://
Change-Id: I03e061078f128e46810472fc484495aff684e3f4
Reviewed-on: https://gerrit.libreoffice.org/38396
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'source/help.js')
-rw-r--r-- | source/help.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/help.js b/source/help.js index dba3baf217..b138839e59 100644 --- a/source/help.js +++ b/source/help.js @@ -8,9 +8,10 @@ */ function setModule(module){ -var itemspan = document.getElementsByTagName("span"); +if (module == null){module="SHARED"} -if (module == null){module="DEFAPP"} +document.getElementById("bookmark"+module).hidden=false; +var itemspan = document.getElementsByTagName("span"); var n = itemspan.length; for (var i = 0; i < n; i++){ if (itemspan[i].getAttribute("value") == module){ @@ -54,11 +55,6 @@ function fixURL(module, system){ } } -function displayBookmark(module){ - if (module==null){module='WRITER'} - $("#BottomLeft").load('bookmark_'+module+'.html'); -} - function getParameterByName(name, url) { if (!url) { url = window.location.href; |