summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-07-03 17:17:57 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-07-03 17:17:57 +0000
commit2ee124c0ad4ee0a9f81482ab71d46fb0a703410e (patch)
tree4b32e7a129d4553266bf60db600fe2a944aa9f2d /roundcubemail/program/js
parentf847c3b41c277d5f70ecdbca6adff420934e51d0 (diff)
Fix status message bug #1484464 with regard to #1484353
git-svn-id: https://svn.roundcube.net/trunk@637 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 65bbee9a3..943b144f6 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -2915,17 +2915,16 @@ function rcube_webmail()
// display a system message
this.display_message = function(msg, type, hold)
{
- // pass command to parent window
- if (this.env.framed && parent.rcmail )
- return parent.rcmail.display_message(msg, type, hold);
-
- this.set_busy(false);
if (!this.loaded) // save message in order to display after page loaded
{
this.pending_message = new Array(msg, type);
return true;
}
-
+
+ // pass command to parent window
+ if (this.env.framed && parent.rcmail)
+ return parent.rcmail.display_message(msg, type, hold);
+
if (!this.gui_objects.message)
return false;
@@ -2936,12 +2935,12 @@ function rcube_webmail()
if (type)
cont = '<div class="'+type+'">'+cont+'</div>';
- this.gui_objects.message._rcube = this;
+ var _rcube = this;
this.gui_objects.message.innerHTML = cont;
this.gui_objects.message.style.display = 'block';
-
+
if (type!='loading')
- this.gui_objects.message.onmousedown = function(){ this._rcube.hide_message(); return true; };
+ this.gui_objects.message.onmousedown = function(){ _rcube.hide_message(); return true; };
if (!hold)
this.message_timer = setTimeout(function(){ ref.hide_message(); }, this.message_time);