From 968f97eacd703e4d330cf35d2029f04c8cff397c Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Sat, 28 Aug 1999 14:33:45 +0000 Subject: [PATCH] fix bug when adding first schema to empty wallet git-svn-id: svn://10.0.0.236/trunk@44998 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/wallet/editor/WalletEditor.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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() {