From 480f5d9246fc745e3d8fb36196f56b2e187290c4 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 10 Oct 2007 06:53:58 +0000 Subject: Suppress IE errors when clearing attachments form (#1484356) --- program/js/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'program/js/app.js') diff --git a/program/js/app.js b/program/js/app.js index 933a899d3..93db5931f 100644 --- a/program/js/app.js +++ b/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