diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-10-29 09:12:44 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-10-29 09:12:44 +0100 |
commit | a9d476f0123273b8ccd51ffb4669d6631a8b40d6 (patch) | |
tree | 0574360942a8ef9c239e3f0e69901a699dceb3ad /program/js | |
parent | 59cdb433a6880b764cdf7631d6cc0b7fde585287 (diff) | |
parent | b1f3c3bee814ee9fadd4145ade9d9542211d2ee4 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/list.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js index 0b6f416e3..8843cd94a 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -912,7 +912,8 @@ shift_select: function(id, control) from_rowIndex = this._rowIndex(this.rows[this.shift_start].obj), to_rowIndex = this._rowIndex(to_row.obj); - if (!to_row.expanded && to_row.has_children) + // if we're going down the list, and we hit a thread, and it's closed, select the whole thread + if (from_rowIndex < to_rowIndex && !to_row.expanded && to_row.has_children) if (to_row = this.rows[(this.row_children(id)).pop()]) to_rowIndex = this._rowIndex(to_row.obj); @@ -934,6 +935,7 @@ shift_select: function(id, control) } }, + /** * Helper method to emulate the rowIndex property of non-tr elements */ |