diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-07-23 18:28:56 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2017-07-23 23:35:16 +0200 |
commit | 46fc2324d0db000581fcbe5c55838bd58187a6fb (patch) | |
tree | 945e66e90a08c7481a5209a1686dbd6289d00cce /help3xsl | |
parent | 7f87a5f65fe80d0262a96b43ee14edae33a09948 (diff) |
tdf#97745 code cleanup
* Add debug param, to display page info in the bottom
&Debug={0|1}
Change-Id: I809548e5d59d0a55b258ca0ec69811efec51df67
Reviewed-on: https://gerrit.libreoffice.org/40341
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/help.js | 2 | ||||
-rw-r--r-- | help3xsl/online_transform.xsl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js index 0b22b5f892..6028802be3 100644 --- a/help3xsl/help.js +++ b/help3xsl/help.js @@ -18,7 +18,6 @@ function setModule(module){ itemspan[i].removeAttribute("hidden"); } } - document.getElementById("M_"+module).selected="true"; } // Used to set system in caseinline=SYSTEM @@ -31,7 +30,6 @@ function setSystem(system){ itemspan[i].removeAttribute("hidden"); } } - document.getElementById("S_"+system).selected="true"; } /* add &DbPAR= and &System= to the links in DisplayArea div */ function fixURL(module, system){ diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index eef2cb9826..f18caac2e1 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -274,7 +274,7 @@ </div> <footer> <p><a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | <a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/statutes.pdf" target="_blank">Statutes (non-binding English translation)</a> - <a href="http://www.documentfoundation.org/satzung.pdf" target="_blank">Satzung (binding German version)</a> | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" target="_blank">Creative Commons Attribution-Share Alike 3.0 License</a>. This does not include the source code of LibreOffice, which is licensed under the <a href="http://www.libreoffice.org/download/license/" target="_blank">Mozilla Public License v2.0</a>. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>. LibreOffice was based on OpenOffice.org.</p> - <div class="debug"> + <div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p>This page is: <xsl:value-of select="$filename"/></p> <p>Title is: <xsl:value-of select="$title"/></p> @@ -291,6 +291,8 @@ var system = getParameterByName("System"); setSystem(system); fixURL(module,system); + var dbg = getParameterByName("Debug"); + document.getElementById("DEBUG").style.display = (dbg ==0) ? "none":"block"; document.getElementById("bm_module").innerHTML ="Module is: "+module; document.getElementById("bm_system").innerHTML ="System is: "+system; ]]> |