summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-02 16:26:58 +0000
committeralecpl <alec@alec.pl>2008-04-02 16:26:58 +0000
commit164c7d4d26c47fe61c59404a955cfa059b0e67e5 (patch)
treef31cc786afad9f368d7974991edded8c07a86d62 /program/js/app.js
parentd7c226ca1bbab8bcf994d9f4c921178beef81ba7 (diff)
#1484317
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 2d30f300b..9f7b7ee6e 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -202,7 +202,7 @@ function rcube_webmail()
}
if (this.env.messagecount)
- this.enable_command('select-all', 'select-none', 'sort', 'expunge', true);
+ this.enable_command('select-all', 'select-none', 'expunge', true);
if (this.env.messagecount && (this.env.mailbox==this.env.trash_mailbox || this.env.mailbox==this.env.junk_mailbox))
this.enable_command('purge', true);
@@ -3500,8 +3500,10 @@ function rcube_webmail()
case 'list':
if (this.env.messagecount)
- this.enable_command('purge', (this.env.mailbox==this.env.trash_mailbox || this.env.mailbox==this.env.junk_mailbox));
- this.msglist_select(this.message_list);
+ this.enable_command('purge', (this.env.mailbox==this.env.trash_mailbox || this.env.mailbox==this.env.junk_mailbox));
+
+ this.enable_command('sort', (this.env.messagecount > 0));
+ this.msglist_select(this.message_list);
case 'expunge':
this.enable_command('select-all', 'select-none', 'expunge', this.env.messagecount ? true : false);