diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-03-22 00:21:04 -0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-08-07 17:52:30 +0200 |
commit | 73bf8469d4a443617935dae6a245d9b327e74a95 (patch) | |
tree | d403abf4712af468920821fd3783394e576137cf /help3xsl/help.js | |
parent | 93ebf037016819613322ef1c39951a3de893ec14 (diff) |
Add vnd.oasis.opendocument.* objects in new help
Add capability to link ODF files in help page as objects
Files are stored in media/files/ folder
Example in func_imsin.xhp
Change-Id: I4704e3cc235fd31251f3a4dba403e62f2ef1de0e
Reviewed-on: https://gerrit.libreoffice.org/51721
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/help.js')
-rw-r--r-- | help3xsl/help.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js index f33117bf94..26c9351246 100644 --- a/help3xsl/help.js +++ b/help3xsl/help.js @@ -49,13 +49,16 @@ function setSystem(system) { } } /* add &DbPAR= and &System= to the links in DisplayArea div */ +/* skip for object files */ function fixURL(module, system) { var itemlink = document.getElementById("DisplayArea").getElementsByTagName("a"); - var pSystem = (system === null) ? "WIN" : system; + var pSystem = (system === null) ? getSystem() : system; var pAppl = (module === null) ? "WRITER" : module; var n = itemlink.length; for (var i = 0; i < n; i++) { + if (itemlink[i].getAttribute("class") != "objectfiles"){ setURLParam(itemlink[i], pSystem, pAppl); + }; } } //Set the params inside URL |