зеркало из https://github.com/mozilla/pjs.git
Bug 120018 - Pressing ESC in Delete Profile dialog deletes profile.
r=rjc@netscape.com/sr=alecf@netscape.com/a=blizzard@mozilla.org
This commit is contained in:
Родитель
85c4ac9982
Коммит
b701f2747d
|
@ -166,13 +166,14 @@ function ConfirmDelete()
|
|||
var buttonPressed = {value:0}
|
||||
promptService.confirmEx(window, dialogTitle, dialogText,
|
||||
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0) +
|
||||
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_1) +
|
||||
(promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_2),
|
||||
(promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) +
|
||||
(promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2),
|
||||
gProfileManagerBundle.getString("dontDeleteFiles"),
|
||||
null,
|
||||
gProfileManagerBundle.getString("deleteFiles"),
|
||||
null, null, {value:0}, buttonPressed);
|
||||
if (buttonPressed.value != 2)
|
||||
DeleteProfile(buttonPressed.value == 1);
|
||||
null, {value:0}, buttonPressed);
|
||||
if (buttonPressed.value != 1)
|
||||
DeleteProfile(buttonPressed.value == 2);
|
||||
}
|
||||
else
|
||||
DeleteProfile(false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче