tdf#123318 Use SHARED as the default module instead of WRITER
Change-Id: I78c3f71a862ad0896cc13b105cac46dca99b4195
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/130079
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
diff --git a/help3xsl/help2.js b/help3xsl/help2.js
index a0cd884..5b9b2a9 100644
--- a/help3xsl/help2.js
+++ b/help3xsl/help2.js
@@ -115,7 +115,7 @@ function fixURL(module, system) {
if ((DisplayArea = document.getElementById("DisplayArea")) === null) return;
var itemlink = DisplayArea.getElementsByTagName("a");
var pSystem = (system === null) ? getSystem() : system;
var pAppl = (module === null) ? "WRITER" : module;
var pAppl = (module === null) ? "SHARED" : module;
var n = itemlink.length;
for (var i = 0; i < n; i++) {
if (itemlink[i].getAttribute("class") != "objectfiles") {
diff --git a/help3xsl/index2.html b/help3xsl/index2.html
index f0585c8..c08335e 100644
--- a/help3xsl/index2.html
+++ b/help3xsl/index2.html
@@ -38,7 +38,7 @@
case "smath": {defaultFile='text/smath/main0000.html';module="MATH";break;}
case "sdatabase": {defaultFile='text/sdatabase/main.html';module="BASE";break;}
case "sbasic": {defaultFile='text/sbasic/shared/main0601.html';module="BASIC";break;}
default: {defaultFile='text/shared/05/new_help.html';module="WRITER";break;}
default: {defaultFile='text/shared/05/new_help.html';module="SHARED";break;}
}
//Special case of application F1 or menu Help -> LibreOffice Help
if (target.indexOf('.uno:HelpIndex') != -1) {
@@ -66,7 +66,7 @@
var system = 'WIN';
if (navigator.userAgent.indexOf("Mac") != -1) system = 'MAC';
if (navigator.userAgent.indexOf("Linux") != -1) system = 'UNIX';
window.location.replace(existingLang(navigator.language) + '/text/shared/05/new_help.html?&DbPAR=WRITER&System=' + system);
window.location.replace(existingLang(navigator.language) + '/text/shared/05/new_help.html?&DbPAR=SHARED&System=' + system);
}
});
</script>