help3xsl/help.js | 2 -- help3xsl/online_transform.xsl | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 46fc2324d0db000581fcbe5c55838bd58187a6fb Author: Olivier Hallot <olivier.hal...@libreoffice.org> Date: Sun Jul 23 18:28:56 2017 -0300 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.hal...@edx.srv.br> Tested-by: Olivier Hallot <olivier.hal...@edx.srv.br> diff --git a/help3xsl/help.js b/help3xsl/help.js index 0b22b5f89..6028802be 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 eef2cb982..f18caac2e 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; ]]>
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits