[Libreoffice-commits] help.git: Branch 'distro/collabora/cp-6.0' - help3xsl/index2.html
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Aug 15 09:22:22 UTC 2018
help3xsl/index2.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 5301ace8b56e7e32548366e4bf6883a2d964837b
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Aug 15 09:06:34 2018 +0200
Commit: Miklos Vajna <vmiklos at collabora.co.uk>
CommitDate: Wed Aug 15 11:22:02 2018 +0200
Try to detect the system at least a bit.
Change-Id: I5c5243d56cf85eeb7cd857c7d9f6da5cd305b429
Reviewed-on: https://gerrit.libreoffice.org/59046
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>
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