summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-07 11:30:27 +0000
committeralecpl <alec@alec.pl>2008-04-07 11:30:27 +0000
commit2eb0326a5523a7e89e377a780186ebf0d95b8665 (patch)
tree712393cf6f78c525e9607b5ccaef6bc6be1ea37a /program/js/app.js
parent7560371366e73febec1a0720c0d166a30feec9ba (diff)
- disable purge command after purge action
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index a4f54715d..e6b6cff7c 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3461,10 +3461,9 @@ function rcube_webmail()
this.message_list.init();
break;
+ case 'purge':
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.enable_command('purge', (this.env.messagecount && (this.env.mailbox==this.env.trash_mailbox || this.env.mailbox==this.env.junk_mailbox)));
this.msglist_select(this.message_list);
case 'getunread':