From 320e15b32fc65b18cf571c3f25902482f0ec6eeb Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 08 Feb 2008 12:15:24 -0500 Subject: [PATCH] Don't unselect and re-select a list row --- 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 06c3554..565d1b7 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -503,9 +503,12 @@ { if (this.rows[id] && !multiple) { - this.clear_selection(); - this.selection[0] = id; - this.set_classname(this.rows[id].obj, 'selected', true) + if (!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