summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-06-15 10:29:55 +0200
committerAleksander Machniak <alec@alec.pl>2014-06-15 10:30:51 +0200
commitee83a48d04ee033c1430e2c1e8feb03641916509 (patch)
tree449fa68d32cf14a7e4015b4865eb2cdd4d2313e7 /program
parent4162430a43d157802110ccfacf536a2036e0126f (diff)
Fix list reload after sending message in another window (#1489931) - use checkmail instead of list command
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 68faab1a9..c9b9050b8 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4221,21 +4221,22 @@ function rcube_webmail()
this.display_message(msg, type);
if (this.env.extwin) {
- var rc = this.opener();
this.lock_form(this.gui_objects.messageform);
+
+ var rc = this.opener();
if (rc) {
rc.display_message(msg, type);
// 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.command('checkmail');
}
}
- setTimeout(function(){ window.close() }, 1000);
+
+ setTimeout(function() { window.close(); }, 1000);
}
else {
// before redirect we need to wait some time for Chrome (#1486177)
- setTimeout(function(){ ref.list_mailbox(); }, 500);
+ setTimeout(function() { ref.list_mailbox(); }, 500);
}
};