mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
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:
parent
a9c9de36a3
commit
368c5f07f7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user