diff options
author | Charles McNulty <cmcnulty@kznf.com> | 2013-10-25 14:13:06 -0700 |
---|---|---|
committer | Charles McNulty <cmcnulty@kznf.com> | 2013-10-25 14:13:06 -0700 |
commit | d194179863837ab7ed4e4eaae5e3f6ace96844d5 (patch) | |
tree | 4d24a50e6bfabed8b0bde2dc51043c40185dd071 | |
parent | 3ce7c568267878b148121237474af155c282019d (diff) |
Fix shift-select when navigating UP the messsage list
-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 33f88ab10..9f9e193e5 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -911,7 +911,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); @@ -933,6 +934,7 @@ shift_select: function(id, control) } }, + /** * Helper method to emulate the rowIndex property of non-tr elements */ |