From ebcb788e3b7cc08597a1f19e7acf34c3ec1f01bb Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 8 Feb 2008 17:15:24 +0000 Subject: Don't unselect and re-select a list row git-svn-id: https://svn.roundcube.net/trunk@1030 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/list.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index 06c355432..565d1b7b5 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -503,9 +503,12 @@ highlight_row: function(id, multiple) { if (this.rows[id] && !multiple) { - this.clear_selection(); - this.selection[0] = id; - this.set_classname(this.rows[id].obj, 'selected', true) + if (!this.in_selection(id)) + { + this.clear_selection(); + this.selection[0] = id; + this.set_classname(this.rows[id].obj, 'selected', true); + } } else if (this.rows[id]) { -- cgit v1.2.3