summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-03 11:21:15 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-03 11:21:15 +0000
commit151629c3e9915dc9d011de3b8611121f2ac6c1df (patch)
tree248f96e08a87ee1fab947e19c511a4f44d2ab6af
parent55e69a4d05d14c32140c9ad59dcfef2c06bab7b8 (diff)
#1484942: Clear selection when selecting single item
git-svn-id: https://svn.roundcube.net/trunk@1243 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/list.js9
1 files 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])
{