Bug 337866 - Update not found notification should have regular close button. r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@198676 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
67159161e3
commit
8fd08ae59a
@ -125,8 +125,6 @@ disabledCompatMsg=Add-on compatibility checking is disabled. You may have incomp
|
||||
noUpdatesMsg=No updates were found.
|
||||
offlineUpdateMsg=%S is currently in offline mode and is unable to update Add-ons. Click Go Online and try again.
|
||||
offlineInstallMsg=%S is currently in offline mode and is unable to install Add-ons. Click Go Online and try again.
|
||||
closeButtonLabel=Close
|
||||
closeButtonAccesskey=C
|
||||
enableButtonLabel=Enable
|
||||
enableButtonAccesskey=n
|
||||
goOnlineButtonLabel=Go Online
|
||||
|
||||
@ -775,9 +775,7 @@ UpdateCheckListener.prototype = {
|
||||
var addonsMsg = document.getElementById("addonsMsg");
|
||||
addonsMsg.showMessage("chrome://mozapps/skin/extensions/question.png",
|
||||
getExtensionString("noUpdatesMsg"),
|
||||
getExtensionString("closeButtonLabel"),
|
||||
getExtensionString("closeButtonAccesskey"),
|
||||
false, "addons-no-updates");
|
||||
null, null, true, "addons-no-updates");
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -571,6 +571,11 @@
|
||||
<body>
|
||||
<![CDATA[
|
||||
this.hidden = true;
|
||||
if (this.closeButton.hidden && this.notifyData) {
|
||||
var os = Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
os.notifyObservers(null, "addons-message-notification", this.notifyData);
|
||||
}
|
||||
if (this.queue.length > 0) {
|
||||
this.showMessage(this.queue[0][0], this.queue[0][1], this.queue[0][2],
|
||||
this.queue[0][3], this.queue[0][4], this.queue[0][5]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user