From 538e1c85d214e1ac9e261e8cd20c369a312d4900 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 05 Oct 2010 03:06:51 -0400
Subject: [PATCH] - Fix confirmation message isn't displayed after sending mail on Chrome (#1486177) 

---
 CHANGELOG         |    1 +
 program/js/app.js |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index b34b21c..40e21bc 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -19,6 +19,7 @@
 - Fix mailto optional params in plain text messages aren't handled (#1487026)
 - Add Reply-to-List feature (#1484252)
 - Add Mail-Followup-To/Mail-Reply-To support (#1485547)
+- Fix confirmation message isn't displayed after sending mail on Chrome (#1486177)
 
 RELEASE 0.4.1
 -------------
diff --git a/program/js/app.js b/program/js/app.js
index 4388c50..83a6df2 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3267,8 +3267,9 @@
 
   this.sent_successfully = function(type, msg)
   {
-    this.list_mailbox();
     this.display_message(msg, type, true);
+    // before redirect we need to wait some time for Chrome (#1486177)
+    window.setTimeout(function(){ ref.list_mailbox(); }, 500);
   };
 
 

--
Gitblit v1.9.1