fix some of the options so that new rows are added correctly.

This commit is contained in:
alecf%netscape.com 1999-06-20 22:05:11 +00:00
parent fecfc88199
commit 13d0da7823
2 changed files with 3 additions and 6 deletions

View File

@ -27,10 +27,7 @@ function createXUL(tag) {
}
function createOption(label,value) {
var opt = createHTML("OPTION");
opt.text = label;
opt.value = value;
var opt = new Option(label, value);
return opt;
}
@ -53,6 +50,7 @@ function addStringComparators(selWidget) {
var opt1=createOption("contains", "contains");
var opt2=createOption("doesn't contain", "nocontain");
print("adding " + opt1.text + "\n");
selWidget.add(opt1, null);
selWidget.add(opt2, null);
}
@ -116,7 +114,6 @@ function OnMore(event) {
parentBox.appendChild(createRow());
var sel = document.getElementById("zoober");
sel.onchange = OnFieldSelect;
}
function OnLess(event) {

View File

@ -74,7 +74,7 @@ Rights Reserved.
<html:div align="horizontal" class="cleanborder" id="criteriabox">
<html:div>
<html:select id="zoober" >
<html:select id="zoober" onchange="OnFieldSelect(event);">
<html:option value="subject">&scopeSubject.label;</html:option>
<html:option value="sender">&scopeSender.label;</html:option>
<html:option value="date">&scopeDate.label;</html:option>