From 7eecf873da8d2f28e20dc8fd0e949e6abc5762b4 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 9 Dec 2013 19:16:14 +0100 Subject: Fix issue where children of selected and collapsed thread were skipped on various actions (#1489457) --- program/js/app.js | 17 ++--------------- program/js/list.js | 40 +++++++++++++++++++++++++++++----------- 2 files changed, 31 insertions(+), 26 deletions(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 398417a69..bad8a2f9c 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2662,20 +2662,7 @@ function rcube_webmail() // delete selected messages from the current mailbox this.delete_messages = function(event) { - var uid, i, len, trash = this.env.trash_mailbox, - list = this.message_list, - selection = list ? list.get_selection() : []; - - // exit if no mailbox specified or if selection is empty - if (!this.env.uid && !selection.length) - return; - - // also select childs of collapsed rows - for (i=0, len=selection.length; i12) { @@ -1333,9 +1352,8 @@ drag_mouse_move: function(e) break; } - me = this; if (obj = this.rows[this.selection[n]].obj) { - $('> '+this.col_tagname(), obj).each(function(i,elem){ + $('> '+this.col_tagname(), obj).each(function(i, elem) { if (n == 0) me.drag_start_pos = $(elem).offset(); @@ -1541,7 +1559,7 @@ row_children: function(uid) while (row) { if (row.nodeType == 1) { - if ((r = this.rows[row.uid])) { + if (r = this.rows[row.uid]) { if (!r.depth || r.depth <= depth) break; res.push(r.uid); -- cgit v1.2.3