зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
e651e5c424
Коммит
5266d258da
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче