summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-08 17:15:24 +0000
committerthomascube <thomas@roundcube.net>2008-02-08 17:15:24 +0000
commit320e15b32fc65b18cf571c3f25902482f0ec6eeb (patch)
tree892394107cc54d0c13b28377f844985b0354a1ce /program
parentb89d5a816b161a08bd21ee8f33b6c7af1157c523 (diff)
Don't unselect and re-select a list row
Diffstat (limited to 'program')
-rw-r--r--program/js/list.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 06c355432..565d1b7b5 100644
--- a/program/js/list.js
+++ b/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])
{