From: Michael M Slusarz Date: Mon, 16 Nov 2009 19:27:00 +0000 (-0700) Subject: Use Form.Element.clear() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=85c76650f8f9864bb4052be500839195e8a92497;p=horde.git Use Form.Element.clear() --- diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 3c1a5e1c8..459762bd3 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -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) { diff --git a/imp/js/contacts.js b/imp/js/contacts.js index f812012c8..f57b0ea89 100644 --- a/imp/js/contacts.js +++ b/imp/js/contacts.js @@ -155,7 +155,7 @@ var ImpContacts = { switch (id) { case 'btn_clear': - $('search').setValue(''); + $('search').clear(); break; case 'btn_add_to': diff --git a/imp/js/search.js b/imp/js/search.js index 4e074558a..60147ff02 100644 --- a/imp/js/search.js +++ b/imp/js/search.js @@ -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(); },