#1484942: Clear selection when selecting single item

release-0.6
alecpl 17 years ago
parent 6cb7786912
commit 4672dec8e1

@ -512,14 +512,11 @@ get_single_selection: function()
highlight_row: function(id, multiple) highlight_row: function(id, multiple)
{ {
if (this.rows[id] && !multiple) if (this.rows[id] && !multiple)
{
if (!this.in_selection(id))
{ {
this.clear_selection(); this.clear_selection();
this.selection[0] = id; this.selection[0] = id;
this.set_classname(this.rows[id].obj, 'selected', true); this.set_classname(this.rows[id].obj, 'selected', true);
} }
}
else if (this.rows[id]) else if (this.rows[id])
{ {
if (!this.in_selection(id)) // select row if (!this.in_selection(id)) // select row

Loading…
Cancel
Save