Bug 958993 - taping Clear button under Options several times creates multiple modal prompts.r=mbrubeck

This commit is contained in:
Allison Naaktgeboren 2014-01-17 10:47:24 -08:00
parent a0d8197ac2
commit 605a8561b8

View File

@ -1104,6 +1104,9 @@ var BrowserUI = {
let message = bundle.GetStringFromName("clearPrivateData.message");
let clearbutton = bundle.GetStringFromName("clearPrivateData.clearButton");
let prefsClearButton = document.getElementById("prefs-clear-data");
prefsClearButton.disabled = true;
let buttonPressed = Services.prompt.confirmEx(
null,
title,
@ -1120,6 +1123,8 @@ var BrowserUI = {
if (buttonPressed === 0) {
SanitizeUI.onSanitize();
}
prefsClearButton.disabled = false;
},
};