summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-04-18 10:07:25 -0400
committerAleksander Machniak <alec@alec.pl>2015-04-18 10:07:25 -0400
commit28331d5ed23029753e0a8c5202e60b02716628cc (patch)
treefd07d69b9c9e9588ff42fb3cdeab5822f0469855
parentb112b9bd81fcccd7de115d91ae99efa7a3118f8e (diff)
Trigger 'listupdate' event also on response to check-recent request
-rw-r--r--program/js/app.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/program/js/app.js b/program/js/app.js
index b6b4d319c..c11ae7762 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -7507,7 +7507,7 @@ function rcube_webmail()
this.enable_command('import-messages', !is_multifolder);
this.enable_command('expand-all', 'expand-unread', 'collapse-all', this.env.threading && this.env.messagecount && !is_multifolder);
- if ((response.action == 'list' || response.action == 'search') && this.message_list) {
+ if (this.message_list) {
var list = this.message_list, uid = this.env.list_uid;
// highlight message row when we're back from message page
@@ -7520,12 +7520,14 @@ function rcube_webmail()
delete this.env.list_uid;
}
- this.enable_command('set-listmode', this.env.threads && !is_multifolder);
- if (list.rowcount > 0)
- list.focus();
- this.msglist_select(list);
- this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:list.rowcount });
+ if (response.action == 'list' || response.action == 'search') {
+ this.enable_command('set-listmode', this.env.threads && !is_multifolder);
+ if (list.rowcount > 0)
+ list.focus();
+ this.msglist_select(list);
+ }
+ this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:list.rowcount });
}
}
else if (this.task == 'addressbook') {