summaryrefslogtreecommitdiff
path: root/web-ui/app/js
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-02-08 17:54:53 +0100
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-02-08 18:10:53 +0100
commite713820dc119ff33fdd3b3161ad693fb430c32f4 (patch)
tree70a3ba50fb7f92f9a6e13b1dd2ad5a575e2411d6 /web-ui/app/js
parent91223543207c4a56370ff609df9912a5b11262d7 (diff)
Revert "Issue #549 - Trigger save draft event after remove attachment"
This reverts commit 0e443ce40e684c095285efb774fefe3a824413d7.
Diffstat (limited to 'web-ui/app/js')
-rw-r--r--web-ui/app/js/mail_view/ui/attachment_list.js1
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/web-ui/app/js/mail_view/ui/attachment_list.js b/web-ui/app/js/mail_view/ui/attachment_list.js
index ff7602ec..c8a646af 100644
--- a/web-ui/app/js/mail_view/ui/attachment_list.js
+++ b/web-ui/app/js/mail_view/ui/attachment_list.js
@@ -198,6 +198,7 @@ define(
var success = function() {
this.removeAttachmentFromList(data);
this.destroyAttachmentElement(data);
+ console.log('Success');
};
monitoredAjax(this, '/attachment/' + data.ident, {
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 41de162c..d7da4680 100644
--- a/web-ui/app/js/mixins/with_mail_edit_base.js
+++ b/web-ui/app/js/mixins/with_mail_edit_base.js
@@ -108,7 +108,6 @@ define(
this.select('bodyBox').on('input', this.monitorInput.bind(this));
this.select('subjectBox').on('input', this.monitorInput.bind(this));
this.on(document, events.mail.appendAttachment, this.monitorInput.bind(this));
- this.on(document, events.mail.removeAttachment, this.monitorInput.bind(this));
DraftSaveStatus.attachTo(this.select('draftSaveStatus'));
};
@@ -261,3 +260,4 @@ define(
return withMailEditBase;
});
+