From 151629c3e9915dc9d011de3b8611121f2ac6c1df Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 3 Apr 2008 11:21:15 +0000 Subject: #1484942: Clear selection when selecting single item git-svn-id: https://svn.roundcube.net/trunk@1243 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/list.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index 02c872f9f..6a6b27d14 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -513,12 +513,9 @@ highlight_row: function(id, multiple) { if (this.rows[id] && !multiple) { - if (!this.in_selection(id)) - { - this.clear_selection(); - this.selection[0] = id; - this.set_classname(this.rows[id].obj, 'selected', true); - } + 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