Fix adding default search text to criteria entry
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 16 Sep 2009 05:56:58 +0000 (23:56 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 16 Sep 2009 05:56:58 +0000 (23:56 -0600)
imp/js/search.js

index 705387e..9090e45 100644 (file)
@@ -164,7 +164,7 @@ var ImpSearch = {
     {
         var tmp = [
             new Element('EM').insert(this.getLabel(id)),
-            new Element('INPUT', { type: 'text', size: 25 }),
+            new Element('INPUT', { type: 'text', size: 25 }).setValue(text),
             new Element('SPAN').insert(new Element('INPUT', { checked: Boolean(not), className: 'checkbox', type: 'checkbox' })).insert(this.text.not_match)
         ];
         this.criteria[this.insertCriteria(tmp)] = { t: id };