bug 228017 show yes/no buttons for a yes/no question, instaed of ok/cancel

patch by Andreas Kunz <durbacher@gmx.de> r=neil sr=alecf
This commit is contained in:
cbiesinger%web.de 2004-04-26 10:54:39 +00:00
parent a9c9de36a3
commit 368c5f07f7

View File

@ -342,8 +342,12 @@ function AskChangeDefaultEngine(aSelectedEngine)
"changeEngineMsg", [engineName], 1);
var checkbox = {value:0};
change = promptSvc.confirmCheck(window, title, changeEngineMsg,
dontAskAgainMsg, checkbox);
var choice = promptSvc.confirmEx(window, title, changeEngineMsg,
(promptSvc.BUTTON_TITLE_YES * promptSvc.BUTTON_POS_0) +
(promptSvc.BUTTON_TITLE_NO * promptSvc.BUTTON_POS_1),
null, null, null, dontAskAgainMsg, checkbox);
if (choice == 0)
change = true;
// store "don't ask again" pref from checkbox value (if changed)
debug("dontAskAgain: " + dontAskAgain);