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
Родитель b78f4afa49
Коммит cdd46b1d13
2 изменённых файлов: 8 добавлений и 2 удалений

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

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

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

@ -135,10 +135,12 @@
</vbox>
<hbox id="passphraseBackupButtons" pack="center">
<button label="&button.syncKeyBackup.print.label;"
<button id="printSyncKeyButton"
label="&button.syncKeyBackup.print.label;"
accesskey="&button.syncKeyBackup.print.accesskey;"
oncommand="gSyncUtils.passphrasePrint('passphraseBox');"/>
<button label="&button.syncKeyBackup.save.label;"
<button id="saveSyncKeyButton"
label="&button.syncKeyBackup.save.label;"
accesskey="&button.syncKeyBackup.save.accesskey;"
oncommand="gSyncUtils.passphraseSave('passphraseBox');"/>
</hbox>