diff options
Diffstat (limited to 'web-ui/app/js')
-rw-r--r-- | web-ui/app/js/mail_view/data/mail_sender.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web-ui/app/js/mail_view/data/mail_sender.js b/web-ui/app/js/mail_view/data/mail_sender.js index 7c1bc6b2..6d572e77 100644 --- a/web-ui/app/js/mail_view/data/mail_sender.js +++ b/web-ui/app/js/mail_view/data/mail_sender.js @@ -60,10 +60,8 @@ define( }; this.saveMail = function(mail) { - var method = (mail.ident === '') ? 'POST' : 'PUT'; - return $.ajax(this.attr.mailsResource, { - type: method, + type: 'PUT', dataType: 'json', contentType: 'application/json; charset=utf-8', data: JSON.stringify(mail) |