Bug 600589 - Sync UI: Generating a new custom sync key doesn't have notification message. r=mconnor a=blocking-beta8

This commit is contained in:
Philipp von Weitershausen
2010-10-14 11:12:52 +02:00
parent 3b6ac386a4
commit 1d8eb47916
2 changed files with 8 additions and 2 deletions

View File

@@ -147,12 +147,16 @@ let Change = {
},
_updateStatusWithString: function Change__updateStatusWithString(string, state) {
this._statusRow.hidden = false;
document.getElementById("passphraseStrengthRow").hidden = true;
this._status.value = string;
this._statusIcon.setAttribute("status", state);
let error = state == "error";
this._dialog.getButton("cancel").setAttribute("disabled", !error);
this._dialog.getButton("accept").setAttribute("disabled", !error);
document.getElementById("printSyncKeyButton").disabled = !error;
document.getElementById("saveSyncKeyButton").disabled = !error;
if (state == "success")
window.setTimeout(window.close, 1500);