Changeset 13e1552 in github
- Timestamp:
- May 25, 2010 9:11:17 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 14a4ac5
- Parents:
- 1a4fa6f
- File:
-
- 1 edited
-
program/js/app.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/js/app.js
r14259ce r13e1552 4954 4954 this.enable_command(this.env.message_commands, true); 4955 4955 } 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 } 4956 4962 break; 4957 4963 4958 4964 case 'purge': 4959 4965 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 }); 4968 4976 } 4969 4977 break;
Note: See TracChangeset
for help on using the changeset viewer.
