summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-08 17:15:24 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-08 17:15:24 +0000
commitebcb788e3b7cc08597a1f19e7acf34c3ec1f01bb (patch)
tree09596a78e9b6cc9f72b61267684053ece30d3439
parent3d42617781b72fc95e99e6326b0819e9232a856b (diff)
Don't unselect and re-select a list row
git-svn-id: https://svn.roundcube.net/trunk@1030 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/list.js9
1 files 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])
{