From c1476b4b1c96996464217444e8cdf5d94d248bea Mon Sep 17 00:00:00 2001 From: Giovane Date: Wed, 25 Nov 2015 16:16:58 -0200 Subject: Remove display message calls on save draft. --- web-ui/app/js/mixins/with_mail_edit_base.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js index f6d52eaf..da92ad29 100644 --- a/web-ui/app/js/mixins/with_mail_edit_base.js +++ b/web-ui/app/js/mixins/with_mail_edit_base.js @@ -158,7 +158,6 @@ define( this.trigger(document, events.ui.mail.recipientsUpdated); if (data.skipSaveDraft) { return; } - this.attr.silent = true; var mail = this.buildMail(); this.postponeSaveDraft(mail); }; @@ -176,17 +175,12 @@ define( this.cancelPostponedSaveDraft(); this.attr.timeout = window.setTimeout(_.bind(function() { - this.attr.silent = true; this.saveDraft(mail); }, this), this.attr.saveDraftInterval); }; this.draftSaved = function(event, data) { this.attr.ident = data.ident; - if(!this.attr.silent) { - this.trigger(document, events.ui.userAlerts.displayMessage, { message: i18n('Saved as draft.') }); - } - delete this.attr.silent; }; this.validateAnyRecipient = function () { -- cgit v1.2.3