diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2018-11-20 20:44:57 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2018-11-20 23:02:31 +0100 |
commit | 126ef50e9756e79bf5b500edeaa9275260a1b7d3 (patch) | |
tree | 43c06abed876ad627d5bceaf4dc7392e2b3d5c06 /help3xsl/help.js | |
parent | 789b9f58490c731c2497152be787130851977967 (diff) |
tdf#119415 Add placeholder text for index filter
Change-Id: If7a0a863eb6b8bb95a5b6236f4f3d490739810a1
Reviewed-on: https://gerrit.libreoffice.org/63672
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'help3xsl/help.js')
-rw-r--r-- | help3xsl/help.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js index 7837f7f670..2237ed5b18 100644 --- a/help3xsl/help.js +++ b/help3xsl/help.js @@ -11,8 +11,14 @@ var url = document.URL; var moduleRegex = new RegExp('text\\/(\\w+)\\/'); var regexArray = moduleRegex.exec(url); -// get the module name from the URL and remove the first character -var currentModule = regexArray[1].toUpperCase().substring(1); +var currentModule = null; +// get the module name from the URL and remove the first character, +// but first deal with snowflake Base +if(url.indexOf('explorer/database/') !== -1) { + currentModule = 'BASE'; +} else { + currentModule = regexArray[1].toUpperCase().substring(1); +} var results = null; var fullLinkified = ''; var modules = ['CALC', 'WRITER', 'IMPRESS', 'DRAW', 'BASE', 'MATH', 'CHART', 'BASIC', 'SHARED']; |