add support for saveTo() of search values

git-svn-id: svn://10.0.0.236/trunk@69711 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
2000-05-15 01:22:39 +00:00
parent 4ffbbdd73b
commit c7f05c0de2

View File

@@ -304,6 +304,15 @@
]]>
</body>
</method>
<method name="saveTo">
<argument name="searchValue"/>
<body>
<![CDATA[
this.internalSearchValue = searchValue;
this.save();
]]>
</body>
</method>
</interface>
</binding>
<binding id="searchterm" extends="xul:box">
@@ -400,7 +409,12 @@
var searchTerm = this.searchTerm;
searchTerm.attrib = this.searchattribute.value;
searchTerm.op = this.searchoperator.value;
this.searchvalue.save();
dump("saving search value..\n");
if (this.searchvalue.value)
this.searchvalue.save();
else
this.searchvalue.saveTo(searchTerm.value);
dump("Reassigning back to me!\n");
searchTerm.value = this.searchvalue.value;
searchTerm.booleanAnd = this.booleanAnd;
]]>