diff options
| author | Jefferson Stachelski <jeffhsta@riseup.net> | 2016-02-12 17:58:45 -0200 | 
|---|---|---|
| committer | Jefferson Stachelski <jeffhsta@riseup.net> | 2016-02-12 17:58:45 -0200 | 
| commit | a9626c697992fcd596726a4c16ba8c9757f6a0dd (patch) | |
| tree | 36461e71dada715b6bd1f59c311271f5a83f68b0 /web-ui/app/js | |
| parent | e889bb5c34d4fcfa0f798134771e9dcb3ab062f6 (diff) | |
attachments are only un-linked from emails but not deleted in soledad
- removed backend delete of attachments
- JS unit tests
- Functional test
Issue #549
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 () { | 
