From 2eb0326a5523a7e89e377a780186ebf0d95b8665 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 07 Apr 2008 07:30:27 -0400
Subject: [PATCH] - disable purge command after purge action
---
program/js/app.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/program/js/app.js b/program/js/app.js
index a4f5471..e6b6cff 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3461,10 +3461,9 @@
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':
--
Gitblit v1.9.1