[Libreoffice-commits] help.git: help3xsl/help.html

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Aug 12 14:20:43 UTC 2018


 help3xsl/help.html |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

New commits:
commit 9e4660049b5f4c6da3c652f068186e52a360ae3b
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Aug 10 17:20:07 2018 +0200
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Sun Aug 12 16:20:25 2018 +0200

    Avoid several JS errors.
    
    Change-Id: If0b8b4f3e8c3464f4e7f812ba727a929330438f3
    Reviewed-on: https://gerrit.libreoffice.org/58864
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3xsl/help.html b/help3xsl/help.html
index acaf55b2d..42f1296f0 100644
--- a/help3xsl/help.html
+++ b/help3xsl/help.html
@@ -8,11 +8,25 @@
 -->
 <html>
 <head>
-    <script type="text/javascript" src="latest/help.js"></script>
     <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' piwik.documentfoundation.org *.google.com *.googleapis.com"/>
 </head>
 <body>
 <script type="text/javascript">
+    function getParameterByName(name, url) {
+        if (!url) {
+            url = window.location.href;
+        }
+        name = name.replace(/[\[\]]/g, "\\$&");
+        var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)");
+        var results = regex.exec(url);
+        if (!results) {
+            return null;
+        }
+        if (!results[2]) {
+            return '';
+        }
+        return decodeURIComponent(results[2].replace(/\+/g, " "));
+    }
     var url = window.location.href;
     var n = url.indexOf('?');
     if (n != -1) {


More information about the Libreoffice-commits mailing list