[Libreoffice-commits] help.git: help3xsl/index2.html
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 16 07:20:14 UTC 2018
help3xsl/index2.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 8d728edf4a9bbf066c3173a0349798d9465bad61
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Aug 15 09:06:34 2018 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Aug 16 09:19:52 2018 +0200
Try to detect the system at least a bit.
Change-Id: I5c5243d56cf85eeb7cd857c7d9f6da5cd305b429
Reviewed-on: https://gerrit.libreoffice.org/59049
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/help3xsl/index2.html b/help3xsl/index2.html
index 8b58a4f6e..e09b68e6f 100644
--- a/help3xsl/index2.html
+++ b/help3xsl/index2.html
@@ -21,7 +21,7 @@
// the URL came from LibreOffice help (F1)
var target = getParameterByName("Target",url);
var lang = existingLang(getParameterByName("Language", url));
- var system = getParameterByName("System",url);
+ var system = getParameterByName("System", url);
var module;
var defaultFile;
var smodule = target.substr(0, target.indexOf('/'));
@@ -54,7 +54,10 @@
window.location.href = newURL;
} else {
// URL came from elsewhere, direct access to webroot, we redirect to main Help page
- window.location.href = existingLang(navigator.language) + '/text/shared/main0108.html?&DbPAR=WRITER&System=WIN';
+ var system = 'WIN';
+ if (navigator.userAgent.indexOf("Mac") != -1) system = 'MAC';
+ if (navigator.userAgent.indexOf("Linux") != -1) system = 'UNIX';
+ window.location.href = existingLang(navigator.language) + '/text/shared/main0108.html?&DbPAR=WRITER&System=' + system;
}
</script>
</body>
More information about the Libreoffice-commits
mailing list