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
Родитель a9c9de36a3
Коммит 368c5f07f7
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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);