diff options
author | alecpl <alec@alec.pl> | 2008-04-03 11:21:15 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-04-03 11:21:15 +0000 |
commit | 4672dec8e10af19147b4175630c095c46f97107c (patch) | |
tree | 1d12aef328caad82feefc1e717bdd48828a81f4d /program/js/list.js | |
parent | 6cb7786912ab18e53d8de0bbe436e46bf6d61782 (diff) |
#1484942: Clear selection when selecting single item
Diffstat (limited to 'program/js/list.js')
-rw-r--r-- | program/js/list.js | 9 |
1 files 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]) { |