diff options
author | thomascube <thomas@roundcube.net> | 2008-04-04 16:06:21 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-04-04 16:06:21 +0000 |
commit | df015d175af9751dd3cd19c7ab35ffc658181667 (patch) | |
tree | d3b35671865f4cd376291a95600050a84b4522b9 /program | |
parent | 6cc6e78be37b5bed432d70f54de6894585372387 (diff) |
Better fix for #1484942
Diffstat (limited to 'program')
-rw-r--r-- | program/js/list.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/program/js/list.js b/program/js/list.js index 6a6b27d14..2b3c7a8f6 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -513,9 +513,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.selection.length > 1 || !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]) { |