From 4672dec8e10af19147b4175630c095c46f97107c Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 03 Apr 2008 07:21:15 -0400
Subject: [PATCH] #1484942: Clear selection when selecting single item

---
 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 02c872f..6a6b27d 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -513,12 +513,9 @@
 {
   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])
   {

--
Gitblit v1.9.1