summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-24 08:30:40 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-24 08:30:40 +0000
commitc543dcf4030b4719179e97bc6d3345efb0cebe17 (patch)
treecd5fe3e4379c6dda734ac591361062d09a1cb0b0
parent5c62f68ba53a85715b56f5cdd7be16d12738b963 (diff)
- Fix set_busy() when called from an iframe
git-svn-id: https://svn.roundcube.net/trunk@3903 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 86e6563ca..1e3da6d3b 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1018,11 +1018,13 @@ function rcube_webmail()
if (msg == message)
msg = 'Loading...';
- if (this.gui_objects.message && this.gui_objects.message.__type != 'error')
+ // @TODO: show many messages at a time (one below the other ?)
+ if (this.message_type() != 'error')
this.display_message(msg, 'loading', true);
}
- else if (!a && this.gui_objects.message && this.gui_objects.message.__type != 'error')
+ else if (!a && this.message_type() != 'error') {
this.hide_message();
+ }
this.busy = a;
//document.body.style.cursor = a ? 'wait' : 'default';
@@ -4511,6 +4513,15 @@ function rcube_webmail()
$(this.gui_objects.message).unbind()[(fade?'fadeOut':'hide')]();
};
+ // get type of currently displayed message
+ this.message_type = function()
+ {
+ if (this.gui_objects.message)
+ return this.gui_objects.message.__type;
+ else if (this.env.framed && parent.rcmail && parent.rcmail.gui_objects.message)
+ return parent.rcmail.gui_objects.message.__type;
+ };
+
// mark a mailbox as selected and set environment variable
this.select_folder = function(name, old, prefix)
{