From a8f4960c99d7285e58b115358784067352062ce9 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Sun, 18 Nov 2012 13:05:59 -0500
Subject: [PATCH] Unlock UI even if no message display object exists

---
 program/js/app.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 810b154..3d24ad9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -5593,7 +5593,7 @@
       // save message in order to display after page loaded
       if (type != 'loading')
         this.pending_message = [msg, type, timeout];
-      return false;
+      return 1;
     }
 
     type = type ? type : 'notice';
@@ -5655,6 +5655,9 @@
     if (this.is_framed())
       return parent.rcmail.hide_message(obj, fade);
 
+    if (!this.gui_objects.message)
+      return;
+
     var k, n, i, msg, m = this.messages;
 
     // Hide message by object, don't use for 'loading'!

--
Gitblit v1.9.1