From df015d175af9751dd3cd19c7ab35ffc658181667 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 04 Apr 2008 12:06:21 -0400 Subject: [PATCH] Better fix for #1484942 --- 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 6a6b27d..2b3c7a8 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -513,9 +513,12 @@ { 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]) { -- Gitblit v1.9.1