toolkit/obsolete/content/globalOverlay.xul

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <?xml version="1.0"?> 
     2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     3    - License, v. 2.0. If a copy of the MPL was not distributed with this
     4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <overlay id="globalOverlay"
     8 		 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    10   <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    11   <script type="application/javascript"><![CDATA[
    13     function FillInTooltip ( tipElement )
    14     {
    15       var retVal = false;
    16       var textNode = document.getElementById("TOOLTIP-tooltipText");
    17       if (textNode) {
    18         while (textNode.hasChildNodes())
    19           textNode.removeChild(textNode.firstChild);
    20         var tipText = tipElement.getAttribute("tooltiptext");
    21         if (tipText) {
    22           var node = document.createTextNode(tipText);
    23           textNode.appendChild(node);
    24           retVal = true;
    25         }
    26       }
    27       return retVal;
    28     }
    30   ]]></script>
    32   <popupset id="aTooltipSet">
    33     <tooltip id="aTooltip" class="tooltip" onpopupshowing="return FillInTooltip(document.tooltipNode);">
    34       <label id="TOOLTIP-tooltipText" class="tooltip-label" flex="1"/>
    35     </tooltip>
    36   </popupset>
    38 </overlay>		

mercurial