From 480f5d9246fc745e3d8fb36196f56b2e187290c4 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 10 Oct 2007 02:53:58 -0400
Subject: [PATCH] Suppress IE errors when clearing attachments form (#1484356)

---
 program/js/app.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 933a899..93db593 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1857,8 +1857,11 @@
       }
       
     // 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;  
     };

--
Gitblit v1.9.1