From e57c30d5feaeb5c879100c02c17d2408c76ae5a5 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 10 Oct 2007 06:53:58 +0000 Subject: Suppress IE errors when clearing attachments form (#1484356) git-svn-id: https://svn.roundcube.net/trunk@864 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 933a899d3..93db5931f 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1857,8 +1857,11 @@ function rcube_webmail() } // clear upload form - if (!a && this.gui_objects.attachmentform && this.gui_objects.attachmentform!=this.gui_objects.messageform) - this.gui_objects.attachmentform.reset(); + try { + if (!a && this.gui_objects.attachmentform != this.gui_objects.messageform) + this.gui_objects.attachmentform.reset(); + } + catch(e){} // ignore errors return true; }; -- cgit v1.2.3