checking in with 296566: remove empty updates button from browser UI, removes empty button at top right of window, r=rob_strong@exchangecode.com

This commit is contained in:
ben%bengoodger.com 2005-07-25 17:26:20 +00:00
Родитель e651e5c424
Коммит 5266d258da
2 изменённых файлов: 0 добавлений и 27 удалений

Просмотреть файл

@ -864,12 +864,6 @@ function delayedStartup()
}
#endif
var updatePanel = document.getElementById("softwareupdate");
try {
updatePanel.init();
}
catch (e) { }
// BiDi UI
gBidiUI = isBidiEnabled();
if (gBidiUI) {
@ -878,24 +872,6 @@ function delayedStartup()
document.getElementById("textfieldDirection-separator").hidden = false;
document.getElementById("textfieldDirection-swap").hidden = false;
}
// Ensure the Software Update item is visible on the menubar on Windows and
// Linux, and on the navigation toolbar on MacOSX (since we can't put items on
// the menubar on OS X)... if the Throbber is present place the Updates item
// to the left of it, otherwise place it at the end of the bar.
// We don't use a customizable item for the updates item so we can always be
// sure it's present.
var updateItem = document.getElementById("softwareupdate-item");
updateItem.parentNode.removeChild(updateItem);
#ifdef XP_MACOSX
var theToolbar = document.getElementById("nav-bar");
#else
var theToolbar = document.getElementById("toolbar-menubar");
#endif
if (theToolbar.lastChild.id == "throbber-box")
theToolbar.insertBefore(updateItem, document.getElementById("throbber-box"));
else
theToolbar.appendChild(updateItem);
}
function BrowserShutdown()

Просмотреть файл

@ -144,9 +144,6 @@
# hiddenWindow.xul.
#include browser-menubar.inc
</toolbaritem>
<toolbaritem id="softwareupdate-item" title="&updatesItem.title;" align="center" pack="center">
<toolbarbutton type="updates" id="softwareupdate"/>
</toolbaritem>
</toolbar>
<toolbarpalette id="BrowserToolbarPalette">