mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
Restore toolkit/obsolete files and reinstate them to toolkit/content
This commit is contained in:
parent
52ac5baf89
commit
8bce4f2b81
9 changed files with 1065 additions and 0 deletions
38
toolkit/content/globalOverlay.xul
Normal file
38
toolkit/content/globalOverlay.xul
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
|
||||
<overlay id="globalOverlay"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||
<script type="application/javascript"><![CDATA[
|
||||
|
||||
function FillInTooltip ( tipElement )
|
||||
{
|
||||
var retVal = false;
|
||||
var textNode = document.getElementById("TOOLTIP-tooltipText");
|
||||
if (textNode) {
|
||||
while (textNode.hasChildNodes())
|
||||
textNode.removeChild(textNode.firstChild);
|
||||
var tipText = tipElement.getAttribute("tooltiptext");
|
||||
if (tipText) {
|
||||
var node = document.createTextNode(tipText);
|
||||
textNode.appendChild(node);
|
||||
retVal = true;
|
||||
}
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
]]></script>
|
||||
|
||||
<popupset id="aTooltipSet">
|
||||
<tooltip id="aTooltip" class="tooltip" onpopupshowing="return FillInTooltip(document.tooltipNode);">
|
||||
<label id="TOOLTIP-tooltipText" class="tooltip-label" flex="1"/>
|
||||
</tooltip>
|
||||
</popupset>
|
||||
|
||||
</overlay>
|
||||
Loading…
Add table
Add a link
Reference in a new issue