From 8946c2fca9ae052ed10784f3e39e19dd28dd79c6 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Mon, 28 Oct 2013 07:33:11 -0400 Subject: [PATCH] Merge pull request #146 from cmcnulty/1489397 --- 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 0b6f416..8843cd9 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -912,7 +912,8 @@ 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 @@ } }, + /** * Helper method to emulate the rowIndex property of non-tr elements */ -- Gitblit v1.9.1