fix bug when adding first schema to empty wallet

git-svn-id: svn://10.0.0.236/trunk@44998 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
morse%netscape.com
1999-08-28 14:33:45 +00:00
parent c1be945b03
commit 968f97eacd

View File

@@ -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<schemasLength) &&!(strings[values[schemas[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() {