|
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/. --> |
|
5 |
|
6 |
|
7 <overlay id="globalOverlay" |
|
8 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
9 |
|
10 <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/> |
|
11 <script type="application/javascript"><![CDATA[ |
|
12 |
|
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 } |
|
29 |
|
30 ]]></script> |
|
31 |
|
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> |
|
37 |
|
38 </overlay> |