Changeset 13e1552 in github


Ignore:
Timestamp:
May 25, 2010 9:11:17 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
14a4ac5
Parents:
1a4fa6f
Message:
  • Trigger listupdate event after message removal from list (#1486734)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    r14259ce r13e1552  
    49544954          this.enable_command(this.env.message_commands, true); 
    49554955        } 
     4956        else if (this.task == 'mail') { 
     4957          this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount }); 
     4958        } 
     4959        else if (this.task == 'addressbook') { 
     4960          this.triggerEvent('listupdate', { folder:this.env.source, rowcount:this.contact_list.rowcount }); 
     4961        } 
    49564962        break; 
    49574963 
    49584964      case 'purge': 
    49594965      case 'expunge': 
    4960         if (!this.env.messagecount && this.task == 'mail') { 
    4961           // clear preview pane content 
    4962           if (this.env.contentframe) 
    4963             this.show_contentframe(false); 
    4964           // disable commands useless when mailbox is empty 
    4965           this.enable_command(this.env.message_commands, 
    4966             'purge', 'expunge', 'select-all', 'select-none', 'sort', 
    4967             'expand-all', 'expand-unread', 'collapse-all', false); 
     4966        if (this.task == 'mail') { 
     4967          if (!this.env.messagecount) { 
     4968            // clear preview pane content 
     4969            if (this.env.contentframe) 
     4970              this.show_contentframe(false); 
     4971            // disable commands useless when mailbox is empty 
     4972            this.enable_command(this.env.message_commands, 'purge', 'expunge', 
     4973              'select-all', 'select-none', 'sort', 'expand-all', 'expand-unread', 'collapse-all', false); 
     4974          } 
     4975          this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount }); 
    49684976        } 
    49694977        break; 
Note: See TracChangeset for help on using the changeset viewer.