summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-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;
};