diff options
Diffstat (limited to 'web-ui/app/js')
-rw-r--r-- | web-ui/app/js/mail_view/ui/attachment_list.js | 10 |
1 files changed, 2 insertions, 8 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..0483ae6a 100644 --- a/web-ui/app/js/mail_view/ui/attachment_list.js +++ b/web-ui/app/js/mail_view/ui/attachment_list.js @@ -195,14 +195,8 @@ define( }; this.removeAttachments = function(event, data) { - var success = function() { - this.removeAttachmentFromList(data); - this.destroyAttachmentElement(data); - }; - - monitoredAjax(this, '/attachment/' + data.ident, { - type: 'DELETE' - }).done(success.bind(this)); + this.removeAttachmentFromList(data); + this.destroyAttachmentElement(data); }; this.after('initialize', function () { |