summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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])
{