summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-11-18 19:05:59 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-11-18 19:05:59 +0100
commita8f4960c99d7285e58b115358784067352062ce9 (patch)
tree7b0a168b669c5f6a35506e3e4c31564c8de4ffcd /program/js/app.js
parente27a61a50dfad9218e8cc502a69b5468ae5f2a51 (diff)
Unlock UI even if no message display object exists
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 810b154ab..3d24ad921 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -5593,7 +5593,7 @@ function rcube_webmail()
// 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 @@ function rcube_webmail()
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'!