From 874717b7f1b98ede166a078fc1ffd3f536716576 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 06 Feb 2009 09:42:39 -0500 Subject: [PATCH] - Fix pressing select all/unread multiple times (#1485723) --- program/js/list.js | 9 +++++++-- CHANGELOG | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 7c5d9b7..810f24c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ 2009/02/06 (alec) ---------- +- Fix pressing select all/unread multiple times (#1485723) - Fix selecting all unread does not honor new messages (#1485724) 2009/02/05 (alec) diff --git a/program/js/list.js b/program/js/list.js index 0fd4fda..8d8f9e9 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -506,8 +506,8 @@ // reset but remember selection first var select_before = this.selection.join(','); - this.clear_selection(); - + this.selection = new Array(); + for (var n in this.rows) { if (!filter || (this.rows[n] && this.rows[n][filter] == true)) @@ -515,6 +515,11 @@ this.last_selected = n; this.highlight_row(n, true); } + else if (this.rows[n]) + { + this.set_classname(this.rows[n].obj, 'selected', false); + this.set_classname(this.rows[n].obj, 'unfocused', false); + } } // trigger event if selection changed -- Gitblit v1.9.1