Use Form.Element.clear()
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 16 Nov 2009 19:27:00 +0000 (12:27 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 16 Nov 2009 19:27:00 +0000 (12:27 -0700)
imp/js/compose-dimp.js
imp/js/contacts.js
imp/js/search.js

index 3c1a5e1..459762b 100644 (file)
@@ -52,7 +52,7 @@ var DimpCompose = {
             this.removeAttach(al);
         }
 
-        $('composeCache').setValue('');
+        $('composeCache').clear();
         $('qreply', 'sendcc', 'sendbcc').invoke('hide');
         [ $('msgData'), $('togglecc'), $('togglebcc') ].invoke('show');
         if (this.editor_on) {
index f812012..f57b0ea 100644 (file)
@@ -155,7 +155,7 @@ var ImpContacts = {
 
             switch (id) {
             case 'btn_clear':
-                $('search').setValue('');
+                $('search').clear();
                 break;
 
             case 'btn_add_to':
index 4e07455..60147ff 100644 (file)
@@ -122,7 +122,7 @@ var ImpSearch = {
         switch (elt.readAttribute('id')) {
         case 'recent_searches':
             this.updateSearchCriteria(this.saved_searches[$F(elt)]);
-            elt.setValue('');
+            elt.clear();
             break;
 
         case 'search_criteria':
@@ -208,7 +208,7 @@ var ImpSearch = {
         tds.shift();
 
         tr.childElements().last().insert(new Element('A', { href: '#', className: 'searchuiImg searchuiDelete' }));
-        $('search_criteria').setValue('');
+        $('search_criteria').clear();
         $('search_criteria_table').insert(tr);
         return tr.identify();
     },