summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-04 13:48:17 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-04 13:48:17 +0000
commit6a8d0cbf6fef417b356b76c56666d460127f319d (patch)
tree68fb3e0346b4e5b79c167c8309d0586b4e484b37 /roundcubemail/program/js
parent9bc38e69308f3f6b57e7c9275a7da6a5490881ec (diff)
- Improve responsiveness of messages displaying (#1486986)
git-svn-id: https://svn.roundcube.net/trunk@4179 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js21
1 files changed, 12 insertions, 9 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 30eaef526..13711ff97 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -210,11 +210,9 @@ function rcube_webmail()
this.enable_command(this.env.message_commands, this.env.uid);
this.enable_command('reply-list', this.env.list_post);
- if (this.env.next_uid) {
- this.enable_command('nextmessage', 'lastmessage', true);
- }
- if (this.env.prev_uid) {
- this.enable_command('previousmessage', 'firstmessage', true);
+ if (this.env.action == 'show') {
+ this.http_request('pagenav', '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox),
+ this.display_message('', 'loading'));
}
if (this.env.blockedobjects) {
@@ -4595,10 +4593,15 @@ function rcube_webmail()
var date = new Date(),
id = type + date.getTime();
- // The same message of type 'loading' is already displayed
- if (type == 'loading' && this.messages[msg]) {
- this.messages[msg].elements.push(id);
- return id;
+ if (type == 'loading') {
+ if (!msg)
+ msg = this.get_label('loading');
+
+ // The same message of type 'loading' is already displayed
+ if (this.messages[msg]) {
+ this.messages[msg].elements.push(id);
+ return id;
+ }
}
var ref = this,