diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-10-14 09:43:27 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-10-14 21:13:15 +0200 |
commit | 242a6bbefc4c8561fb4355329a0a043803e515d9 (patch) | |
tree | e9329dbb8bbd05f780418aa772a417c3cd8d6793 /help3xsl/help.js | |
parent | 404ff19a22ea45cc7b84e5a6874beca8949ca165 (diff) |
More work on Xapian result page
Added module dropdown fix
TODO: Language
Change-Id: I47012d6280694d87fb5d19e25c6052b8a7ed89c7
Reviewed-on: https://gerrit.libreoffice.org/80771
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/help.js')
-rw-r--r-- | help3xsl/help.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js index 1e92f6ef99..75541e6745 100644 --- a/help3xsl/help.js +++ b/help3xsl/help.js @@ -17,7 +17,11 @@ var currentModule = null; if(url.indexOf('explorer/database/') !== -1) { currentModule = 'BASE'; } else { - currentModule = regexArray[1].toUpperCase().substring(1); + if (null === regexArray){// comes from search or elsewhere, no defined module in URL + currentModule = 'HARED' + }else{ + currentModule = regexArray[1].toUpperCase().substring(1); + } } var results = null; var fullLinkified = ''; |