summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authorrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-11-21 08:18:29 +0000
committerrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-11-21 08:18:29 +0000
commiteb02d48567c46221f9b2b864f75a013e4215f91e (patch)
tree7f68c12e35b083ab2a9b0f12f52e00f301d9e048 /roundcubemail/program/js/app.js
parent5905dbf8f92af7b1837c4d9c0bf5893ebaaa6c9c (diff)
Bypass Trash folder if Shift-Del was pressed.
git-svn-id: https://svn.roundcube.net/trunk@375 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 6485a98d7..1f0e3ee1f 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1342,7 +1342,14 @@ function rcube_webmail()
// if there is a trash mailbox defined and we're not currently in it:
if (this.env.trash_mailbox && String(this.env.mailbox).toLowerCase()!=String(this.env.trash_mailbox).toLowerCase())
- this.move_messages(this.env.trash_mailbox);
+ // if shift was pressed delete it immediately
+ if (this.message_list.shiftkey)
+ {
+ if (confirm(this.get_label('deletemessagesconfirm')))
+ this.permanently_remove_messages();
+ }
+ else
+ this.move_messages(this.env.trash_mailbox);
// if there is a trash mailbox defined but we *are* in it:
else if (this.env.trash_mailbox && String(this.env.mailbox).toLowerCase() == String(this.env.trash_mailbox).toLowerCase())
this.permanently_remove_messages();