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

Olivier Hallot olivier.hallot at libreoffice.org
Fri Jan 19 11:56:19 UTC 2018


 help3xsl/index2.html |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ea4a7345bc1cbcbff3fb4355d0e4f4954f8afa7d
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date:   Thu Jan 18 22:36:18 2018 -0200

    Fix detection of bad help call
    
    remove single quotes
    
    Change-Id: Ia7951508cbf0a49ae029588e1d254de5f3942f12
    Reviewed-on: https://gerrit.libreoffice.org/48165
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3xsl/index2.html b/help3xsl/index2.html
index 6f4fc7f39..f30348b98 100644
--- a/help3xsl/index2.html
+++ b/help3xsl/index2.html
@@ -38,10 +38,10 @@
     var bookmark = rest.slice(rest.indexOf('/')+1, rest.indexOf('?'));
     var file = map[bookmark];
     // rebuild URL
-    if (file=='undefined'){
+    if (file === undefined){
     file = defaultFile;
     }
-    var newURL = lang+'/'+file+'?System='+system+'&DbPAR='+module;
+    var newURL = lang + '/' + file + '?System=' + system + '&DbPAR=' + module;
     window.open(newURL,'_self');
     }else{
     // URL came from elsewhere, direct access to webroot, we redirect to main Help page


More information about the Libreoffice-commits mailing list