From 17695c1c9037d9edc927fb5265d380384eb6866a Mon Sep 17 00:00:00 2001 From: NavaL Date: Tue, 5 Jan 2016 19:44:07 +0100 Subject: emptying attachment list when email sent -- in case the user stays on the same screen and re-click compose Issue #548 --- web-ui/app/js/dispatchers/right_pane_dispatcher.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web-ui/app/js/dispatchers') diff --git a/web-ui/app/js/dispatchers/right_pane_dispatcher.js b/web-ui/app/js/dispatchers/right_pane_dispatcher.js index 870bcd92..7fe4417b 100644 --- a/web-ui/app/js/dispatchers/right_pane_dispatcher.js +++ b/web-ui/app/js/dispatchers/right_pane_dispatcher.js @@ -60,6 +60,7 @@ define( this.openComposeBox = function() { var stage = this.reset(this.attr.composeBox); ComposeBox.attachTo(stage, {currentTag: this.attr.currentTag}); + this.trigger(document, events.mail.resetAttachments); }; this.openFeedbackBox = function() { -- cgit v1.2.3