toolkit/obsolete/content/globalOverlay.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/obsolete/content/globalOverlay.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +<?xml version="1.0"?> 
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +
    1.10 +<overlay id="globalOverlay"
    1.11 +		 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    1.12 +
    1.13 +  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    1.14 +  <script type="application/javascript"><![CDATA[
    1.15 +
    1.16 +    function FillInTooltip ( tipElement )
    1.17 +    {
    1.18 +      var retVal = false;
    1.19 +      var textNode = document.getElementById("TOOLTIP-tooltipText");
    1.20 +      if (textNode) {
    1.21 +        while (textNode.hasChildNodes())
    1.22 +          textNode.removeChild(textNode.firstChild);
    1.23 +        var tipText = tipElement.getAttribute("tooltiptext");
    1.24 +        if (tipText) {
    1.25 +          var node = document.createTextNode(tipText);
    1.26 +          textNode.appendChild(node);
    1.27 +          retVal = true;
    1.28 +        }
    1.29 +      }
    1.30 +      return retVal;
    1.31 +    }
    1.32 +
    1.33 +  ]]></script>
    1.34 +
    1.35 +  <popupset id="aTooltipSet">
    1.36 +    <tooltip id="aTooltip" class="tooltip" onpopupshowing="return FillInTooltip(document.tooltipNode);">
    1.37 +      <label id="TOOLTIP-tooltipText" class="tooltip-label" flex="1"/>
    1.38 +    </tooltip>
    1.39 +  </popupset>
    1.40 +
    1.41 +</overlay>		

mercurial