summaryrefslogtreecommitdiffstats
path: root/help3xsl/help.js
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-07-11 10:25:45 -0300
committerOlivier Hallot <olivier.hallot@edx.srv.br>2017-07-11 15:29:48 +0200
commit551a5fdaba7c7b86b41daafd4574e7b1649c11d5 (patch)
treeb2bbb062522dd2c953a7f66218a2c9fd1fa688e3 /help3xsl/help.js
parentHyphenate compound adjective (diff)
downloadhelp-551a5fdaba7c7b86b41daafd4574e7b1649c11d5.tar.gz
help-551a5fdaba7c7b86b41daafd4574e7b1649c11d5.zip
Help-in-browser (vii) more improvements
see it in http://helponline.libreoffice.org Added mos keywords from schema.org New, responsive page design Change-Id: I9df963c1a962c0fbb5c2926d8066b31cd20d485b Reviewed-on: https://gerrit.libreoffice.org/39822 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'help3xsl/help.js')
-rw-r--r--help3xsl/help.js21
1 files changed, 6 insertions, 15 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js
index 76ec59b53a..0b22b5f892 100644
--- a/help3xsl/help.js
+++ b/help3xsl/help.js
@@ -18,6 +18,7 @@ function setModule(module){
itemspan[i].removeAttribute("hidden");
}
}
+ document.getElementById("M_"+module).selected="true";
}
// Used to set system in caseinline=SYSTEM
@@ -30,6 +31,7 @@ function setSystem(system){
itemspan[i].removeAttribute("hidden");
}
}
+ document.getElementById("S_"+system).selected="true";
}
/* add &DbPAR= and &System= to the links in DisplayArea div */
function fixURL(module, system){
@@ -53,21 +55,11 @@ function setURLParam (itemlink, pSystem, pAppl) {
var pref = href.substring(0, href.lastIndexOf('#'));
itemlink.setAttribute("href", pref + "?" + '&DbPAR=' + pAppl + '&System=' + pSystem + postf);
}else{
- itemlink.setAttribute("href", href + "?"+ '&DbPAR=' + pAppl + '&System=' + pSystem);
+ itemlink.setAttribute("href", href + "?" + '&DbPAR=' + pAppl + '&System=' + pSystem);
}
}
}
}
-// Set System change buttons
-function setSystemURLButton (module) {
- if (module == null){module="WRITER"}
- var button = document.getElementById("lin").getElementsByTagName("a");
- setURLParam(button[0],'UNIX', module);
- button = document.getElementById("win").getElementsByTagName("a");
- setURLParam(button[0],'WIN', module);
- button = document.getElementById("mac").getElementsByTagName("a");
- setURLParam(button[0],'MAC', module);
-}
function getParameterByName(name, url) {
if (!url) {
@@ -97,14 +89,13 @@ $(document).ready(function() {
}
debouncer = setTimeout(function(){
if ($('#search-bar').val()) {
- $("#BottomLeft ul a:not(:contains('" + $('#search-bar').val() + "'))" ).parent().hide();
- $("#BottomLeft ul a:contains('" + $('#search-bar').val() + "')" ).parent().show();
+ $("#Index ul a:not(:contains('" + $('#search-bar').val() + "'))" ).parent().hide();
+ $("#Index ul a:contains('" + $('#search-bar').val() + "')" ).parent().show();
}
else {
- $("#BottomLeft ul li" ).show();
+ $("#Index ul li" ).show();
}
}, 200);
});
});
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */