From 31c171846ec7c387fb7fc3e979a63330420002b0 Mon Sep 17 00:00:00 2001 From: svncommit Date: Tue, 21 Nov 2006 08:18:29 +0000 Subject: Bypass Trash folder if Shift-Del was pressed. --- program/js/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'program/js/app.js') diff --git a/program/js/app.js b/program/js/app.js index 6485a98d7..1f0e3ee1f 100644 --- a/program/js/app.js +++ b/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(); -- cgit v1.2.3