summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-07 11:30:27 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-07 11:30:27 +0000
commitab595888cd573070de0c61d7db4ad1523df8c180 (patch)
treecb975b8e2b02f4ec68f7a77a2fcdb220a71ffd04
parentb65c8c2ba62761744e193ae029e91f7eac61a027 (diff)
- disable purge command after purge action
git-svn-id: https://svn.roundcube.net/trunk@1266 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index a4f54715d..e6b6cff7c 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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':