From 4672dec8e10af19147b4175630c095c46f97107c Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 3 Apr 2008 11:21:15 +0000 Subject: [PATCH] #1484942: Clear selection when selecting single item --- program/js/list.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/program/js/list.js b/program/js/list.js index 02c872f9f..6a6b27d14 100644 --- a/program/js/list.js +++ b/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]) {