Aleksander Machniak
2015-04-18 d3333df32bcba0745c76a89ea517ac4d368f9b74
Trigger 'listupdate' event also on response to check-recent request
1 files modified
14 ■■■■■ changed files
program/js/app.js 14 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -7507,7 +7507,7 @@
          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 @@
              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') {