summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-10-10 06:53:58 +0000
committerthomascube <thomas@roundcube.net>2007-10-10 06:53:58 +0000
commit480f5d9246fc745e3d8fb36196f56b2e187290c4 (patch)
tree910f5a4434dd508f4bb831d5acf7dbbd72d6b1df
parentb37599d068cc99d9d7d5e4c666fc1c0a575741e0 (diff)
Suppress IE errors when clearing attachments form (#1484356)
-rw-r--r--program/js/app.js7
1 files changed, 5 insertions, 2 deletions
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;
};