summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-28 04:33:11 -0700
committerAleksander Machniak <alec@alec.pl>2013-10-28 04:33:11 -0700
commit8946c2fca9ae052ed10784f3e39e19dd28dd79c6 (patch)
tree98ce583c84839186f0a3d9f0ac5903a2a6129831 /program/js/list.js
parenta0e3f127b1301dceba90b2690e20c7b6ee97e954 (diff)
parentd194179863837ab7ed4e4eaae5e3f6ace96844d5 (diff)
Merge pull request #146 from cmcnulty/1489397
1489397 - fix shift-down arrow key over thread when going up
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js4
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
*/