summaryrefslogtreecommitdiff
path: root/help3xsl/help.js
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-03-22 00:21:04 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-03-22 14:10:08 +0100
commit0d0de1b0c16334322e584fcb770db68f66d2a042 (patch)
tree777f7ea5d27aa8275fd2cf34c0a6abc2a25de2bd /help3xsl/help.js
parent4a1008b6ee7043031e9b050adcf836c2f0c88a47 (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.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js
index 8386055269..cd454e6fbe 100644
--- a/help3xsl/help.js
+++ b/help3xsl/help.js
@@ -48,13 +48,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