Cropped offline tooltip appears at random (81683), by neil. r=dean sr=blake

This commit is contained in:
blakeross%telocity.com 2001-08-01 23:42:48 +00:00
parent 0c4aca7346
commit 18ef107eb9

View File

@ -80,14 +80,12 @@ function setOfflineUI(offline)
broadcaster.setAttribute("offline", "true");
broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("offlineTooltip"));
broadcaster.setAttribute("label", bundle.GetStringFromName("goonline"));
FillInTooltip(broadcaster);
}
else
{
broadcaster.removeAttribute("offline");
broadcaster.setAttribute("tooltiptext", bundle.GetStringFromName("onlineTooltip"));
broadcaster.setAttribute("label", bundle.GetStringFromName("gooffline"));
FillInTooltip(broadcaster);
}
}
@ -317,6 +315,12 @@ function NewEditorFromDraft()
// and we need a delay to let dialog close)
function editPage(url, launchWindow, delay)
{
var webNav = null;
if ("getWebNavigation" in window)
webNav = getWebNavigation();
if (webNav && webNav.postData)
return;
// User may not have supplied a window
if (!launchWindow)
{