From 8c555e147be04f165edb1569a7679f0a6a469ca3 Mon Sep 17 00:00:00 2001 From: richs Date: Wed, 29 Aug 2007 19:47:05 +0000 Subject: Fixed multi-message move/delete git-svn-id: https://svn.roundcube.net/trunk@748 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/CHANGELOG | 4 ++++ roundcubemail/program/js/app.js | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index 2d564a588..ce6cb8011 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -1,6 +1,10 @@ CHANGELOG RoundCube Webmail --------------------------- +2007/08/29 (richs) +---------- +- Fixed moving/deleting messages when more than 1 is selected + 2007/08/15 (thomasb) ---------- - Applied patch for LDAP contacts listing by Glen Ogilvie diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 164ac4a1b..581e25512 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1095,11 +1095,13 @@ function rcube_webmail() 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) -- cgit v1.2.3