summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-12-14 13:50:39 +0100
committerAleksander Machniak <alec@alec.pl>2012-12-14 13:50:39 +0100
commit5c421d9927c973049bfaea69609cdf760f8f7332 (patch)
treee892f68b7f90222dc1dc9286ede9d4bfd91a69db /program/js
parent9849d550f9134a78fcb7894468ae3cd4f069d4a1 (diff)
Fix delete button regression in message view (#1488867)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index b5bf1840a..00a47f4b8 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2600,7 +2600,7 @@ function rcube_webmail()
{
var uid, i, len, trash = this.env.trash_mailbox,
list = this.message_list,
- selection = list.get_selection();
+ selection = list ? list.get_selection() : [];
// exit if no mailbox specified or if selection is empty
if (!this.env.uid && !selection.length)
@@ -2710,7 +2710,7 @@ function rcube_webmail()
data._mbox = this.env.mailbox;
if (!data._uid) {
- var uids = this.env.uid ? this.env.uid : this.message_list.get_selection();
+ var uids = this.env.uid ? [this.env.uid] : this.message_list.get_selection();
data._uid = this.uids_to_list(uids);
}