summaryrefslogtreecommitdiff
path: root/web-ui/app/js/services/mail_service.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/services/mail_service.js')
-rw-r--r--web-ui/app/js/services/mail_service.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/app/js/services/mail_service.js b/web-ui/app/js/services/mail_service.js
index fa36b0ac..58b70ed7 100644
--- a/web-ui/app/js/services/mail_service.js
+++ b/web-ui/app/js/services/mail_service.js
@@ -139,7 +139,9 @@ define(
monitoredAjax(this, '/mails', {
type: 'DELETE',
- data: {idents: JSON.stringify(mailIdents)}
+ dataType: 'json',
+ contentType: 'application/json; charset=utf-8',
+ data: JSON.stringify({idents: mailIdents})
}).done(this.triggerDeleted(dataToDelete))
.fail(this.errorMessage(i18n('Could not delete emails')));
};