diff --git a/mozilla/extensions/wallet/editor/WalletEditor.html b/mozilla/extensions/wallet/editor/WalletEditor.html index 50d26927b46..0a23a05eab1 100644 --- a/mozilla/extensions/wallet/editor/WalletEditor.html +++ b/mozilla/extensions/wallet/editor/WalletEditor.html @@ -257,7 +257,7 @@ var i; text = top.frames[schema_frame].document.schema.newSchema; schemaIndex = 0; - while (!(strings[values[schemas[schemaIndex]]] >= text.value)) { + while ((schemaIndex= text.value)) { schemaIndex++; } @@ -346,13 +346,17 @@ } function addValue() { - addValue0(); - loadMain(); + if (schemasLength != 0) { + addValue0(); + loadMain(); + } } function addSynonym() { - addSynonym0(); - loadMain(); + if (schemasLength != 0) { + addSynonym0(); + loadMain(); + } } function deleteSchema() {