diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-10-13 21:32:28 +0000 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-10-13 21:33:14 +0000 |
commit | a7da0811dab7ec5077749ea8c2936c3b969d69fd (patch) | |
tree | be23f6eb5a689c17db228df459c4ba097131d4c7 /web-ui/app/js | |
parent | 69dccf3fd6979d797d49c9a158725cb654c4ec2d (diff) |
#89 - uses PUT method on /mails resource to create/update draft
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) |