summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichs <richs@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-08-29 19:47:05 +0000
committerrichs <richs@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-08-29 19:47:05 +0000
commit8c555e147be04f165edb1569a7679f0a6a469ca3 (patch)
treeec15e9d235dadb05edd7c7fa454c0ea97a1a78a3
parent8efe8f1accd963b5ea7c9da68c50d3e0af4f547f (diff)
Fixed multi-message move/delete
git-svn-id: https://svn.roundcube.net/trunk@748 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/CHANGELOG4
-rw-r--r--roundcubemail/program/js/app.js6
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)