From 3014548e3e3424f75d212a9183372bfac3a529ac Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Wed, 29 Aug 2007 15:47:05 -0400
Subject: [PATCH] Fixed multi-message move/delete

---
 program/js/app.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 164ac4a..581e255 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1095,11 +1095,13 @@
     if (this.env.mailbox == this.env.drafts_mailbox)
       {
       this.enable_command('reply', 'reply-all', 'forward', false);
-      this.enable_command('show', 'delete', 'moveto', selected);
+      this.enable_command('show', selected);
+      this.enable_command('delete', 'moveto', (list.selection.length > 0 ? true : false));
       }
     else
       {
-      this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', 'delete', 'moveto', selected);
+      this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', selected);
+      this.enable_command('delete', 'moveto', (list.selection.length > 0 ? true : false));
       }
 
     // start timer for message preview (wait for double click)

--
Gitblit v1.9.1