summaryrefslogtreecommitdiff
path: root/web-ui/app/js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js')
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js
index 36d5980f..a1fa6b09 100644
--- a/web-ui/app/js/mixins/with_mail_edit_base.js
+++ b/web-ui/app/js/mixins/with_mail_edit_base.js
@@ -216,7 +216,9 @@ define(
};
this.before('initialize', function () {
+ if (!this.discardDraft){
this.discardDraft = function () {};
+ }
});
this.after('initialize', function () {