зеркало из https://github.com/mozilla/gecko-dev.git
Bug 595610 - "Work Offline" in the Firefox button menu isn't checked if you're offline. r=dolske a=b
This commit is contained in:
Родитель
7736c9db9a
Коммит
accb425a22
|
@ -113,6 +113,7 @@
|
|||
label="&goOfflineCmd.label;"
|
||||
accesskey="&goOfflineCmd.accesskey;"
|
||||
type="checkbox"
|
||||
observes="workOfflineMenuitemState"
|
||||
oncommand="BrowserOffline.toggleOfflineStatus();"/>
|
||||
<menuitem id="menu_FileQuitItem"
|
||||
#ifdef XP_WIN
|
||||
|
|
|
@ -196,6 +196,7 @@
|
|||
<broadcaster id="sync-setup-state"/>
|
||||
<broadcaster id="sync-syncnow-state"/>
|
||||
#endif
|
||||
<broadcaster id="workOfflineMenuitemState"/>
|
||||
</broadcasterset>
|
||||
|
||||
<keyset id="mainKeyset">
|
||||
|
|
|
@ -5484,7 +5484,7 @@ var BrowserOffline = {
|
|||
init: function ()
|
||||
{
|
||||
if (!this._uiElement)
|
||||
this._uiElement = document.getElementById("goOfflineMenuitem");
|
||||
this._uiElement = document.getElementById("workOfflineMenuitemState");
|
||||
|
||||
Services.obs.addObserver(this, "network:offline-status-changed", false);
|
||||
|
||||
|
|
|
@ -574,6 +574,7 @@
|
|||
<menuseparator/>
|
||||
<menuitem label="&goOfflineCmd.label;"
|
||||
type="checkbox"
|
||||
observes="workOfflineMenuitemState"
|
||||
oncommand="BrowserOffline.toggleOfflineStatus();"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
|
Загрузка…
Ссылка в новой задаче