diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-09-11 09:45:20 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-09-11 09:45:20 +0200 |
commit | 66a549e1331fb85a04d34294b1197e6848a76954 (patch) | |
tree | 71aab41dcac97b781716ded96a164c0f3e7a3110 /program/js | |
parent | 6128ad7e962a8f9bf82a1ef87e4efbe36d719d92 (diff) |
After message is sent refresh messages list of replied message folder (#1489249)
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js index dedad37d2..166b082bf 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3783,7 +3783,7 @@ function rcube_webmail() this.env.search_id = null; }; - this.sent_successfully = function(type, msg, target) + this.sent_successfully = function(type, msg, folders) { this.display_message(msg, type); @@ -3792,9 +3792,11 @@ function rcube_webmail() this.lock_form(this.gui_objects.messageform); if (rc) { rc.display_message(msg, type); - // refresh the folder where sent message was saved - if (target && rc.env.task == 'mail' && rc.env.action == '' && rc.env.mailbox == target) - rc.command('checkmail'); + // refresh the folder where sent message was saved or replied message comes from + if (folders && rc.env.task == 'mail' && rc.env.action == '' && $.inArray(rc.env.mailbox, folders) >= 0) { + // @TODO: try with 'checkmail' here when #1485186 is fixed. See also #1489249. + rc.command('list', rc.env.mailbox); + } } setTimeout(function(){ window.close() }, 1000); } |