diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-08-16 09:31:10 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-08-16 14:42:52 +0200 |
commit | f0e9b27d338a12bb5c7631f3c935ba9969bd7db3 (patch) | |
tree | bc36349ff499367ce8f399839d3515324dd58ec2 /help3xsl/help2.js | |
parent | c8a4b91e10c89167a272f46966ac9c09bed8e711 (diff) |
Generate the modules dropdown content on demand too.
Change-Id: Ibcbd8faac4f31d41398d8ae98314d83690136ab6
Reviewed-on: https://gerrit.libreoffice.org/59152
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-on: https://gerrit.libreoffice.org/59153
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/help2.js')
-rw-r--r-- | help3xsl/help2.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/help3xsl/help2.js b/help3xsl/help2.js index 501a754a9a..505dcaf8ec 100644 --- a/help3xsl/help2.js +++ b/help3xsl/help2.js @@ -138,6 +138,23 @@ function existingLang(lang) { return 'en-US'; } +function setupModules(target, lang) { + var modulesNav = document.getElementById('modules-nav'); + if (!modulesNav.classList.contains('loaded')) { + var html = + '<a href="' + target + lang + '/text/swriter/main0000.html?DbPAR=WRITER"><div class="writer-icon"></div>Writer</a>' + + '<a href="' + target + lang + '/text/scalc/main0000.html?DbPAR=CALC"><div class="calc-icon"></div>Calc</a>' + + '<a href="' + target + lang + '/text/simpress/main0000.html?DbPAR=IMPRESS"><div class="impress-icon"></div>Impress</a>' + + '<a href="' + target + lang + '/text/sdraw/main0000.html?DbPAR=DRAW"><div class="draw-icon"></div>Draw</a>' + + '<a href="' + target + lang + '/text/shared/explorer/database/main.html?DbPAR=BASE"><div class="base-icon"></div>Base</a>' + + '<a href="' + target + lang + '/text/smath/main0000.html?DbPAR=MATH"><div class="math-icon"></div>Math</a>' + + '<a href="' + target + lang + '/text/schart/main0000.html?DbPAR=CHART"><div class="chart-icon"></div>Chart</a>' + + '<a href="' + target + lang + '/text/sbasic/shared/main0601.html?DbPAR=BASIC"><div class="basic-icon"></div>Basic</a>'; + modulesNav.innerHTML = html; + modulesNav.classList.add('loaded'); + } +} + function setupLanguages(target, page) { var langNav = document.getElementById('langs-nav'); if (!langNav.classList.contains('loaded')) { |