Bug 395038 - Add "Not Now" button to save password notification bar. r=gavin, ui-r=beltzner, a1.9=schrep

This commit is contained in:
dolske@mozilla.com 2008-02-09 22:25:48 -08:00
parent 24fbf5fb3f
commit cc205a52b6
2 changed files with 14 additions and 2 deletions

View File

@ -338,6 +338,10 @@ LoginManagerPrompter.prototype = {
this._getLocalizedString("notifyBarRememberButtonText");
var rememberButtonAccessKey =
this._getLocalizedString("notifyBarRememberButtonAccessKey");
var notNowButtonText =
this._getLocalizedString("notifyBarNotNowButtonText");
var notNowButtonAccessKey =
this._getLocalizedString("notifyBarNotNowButtonAccessKey");
var brandShortName =
this._brandBundle.GetStringFromName("brandShortName");
@ -369,9 +373,15 @@ LoginManagerPrompter.prototype = {
callback: function(aNotificationBar, aButton) {
pwmgr.setLoginSavingEnabled(aLogin.hostname, false);
}
}
},
// "Not now" button not needed, as notification bar isn't modal.
// "Not now" button
{
label: notNowButtonText,
accessKey: notNowButtonAccessKey,
popup: null,
callback: function() { /* NOP */ }
}
];

View File

@ -41,6 +41,8 @@ rememberPassword = Use Password Manager to remember this password.
savePasswordTitle = Confirm
savePasswordText = Do you want %S to remember this password?
notNowButtonText = &Not Now
notifyBarNotNowButtonText = Not Now
notifyBarNotNowButtonAccessKey = N
neverForSiteButtonText = Ne&ver for This Site
notifyBarNeverForSiteButtonText = Never for This Site
notifyBarNeverForSiteButtonAccessKey = e