mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
123504 - menuitem/tooltip conflict. r/sr=hewitt
This commit is contained in:
parent
67abf4ee30
commit
dd8895cb0b
@ -77,7 +77,8 @@ function toggleOfflineStatus()
|
||||
function setOfflineUI(offline)
|
||||
{
|
||||
var broadcaster = document.getElementById("Communicator:WorkMode");
|
||||
if (!broadcaster) return;
|
||||
var panel = document.getElementById("offline-status");
|
||||
if (!broadcaster || !panel) return;
|
||||
|
||||
//Checking for a preference "network.online", if it's locked, disabling
|
||||
// network icon and menu item
|
||||
@ -98,13 +99,13 @@ function setOfflineUI(offline)
|
||||
if (offline)
|
||||
{
|
||||
broadcaster.setAttribute("offline", "true");
|
||||
broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("offlineTooltip"));
|
||||
panel.setAttribute("tooltiptext", bundle.GetStringFromName("offlineTooltip"));
|
||||
broadcaster.setAttribute("label", bundle.GetStringFromName("goonline"));
|
||||
}
|
||||
else
|
||||
{
|
||||
broadcaster.removeAttribute("offline");
|
||||
broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("onlineTooltip"));
|
||||
panel.setAttribute("tooltiptext", bundle.GetStringFromName("onlineTooltip"));
|
||||
broadcaster.setAttribute("label", bundle.GetStringFromName("gooffline"));
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,6 @@
|
||||
oncommand="toggleOfflineStatus();"/>
|
||||
|
||||
<statusbarpanel id="offline-status"
|
||||
tooltip="aTooltip"
|
||||
observes="Communicator:WorkMode"/>
|
||||
|
||||
<menuitem id="offlineGoOfflineCmd"
|
||||
|
Loading…
Reference in New Issue
Block a user