From fc643e985a4f8840df3456651c045e8699556289 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 05 Jan 2012 10:59:49 -0500
Subject: [PATCH] Avoid dblclick events after 3rd click
---
program/js/list.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/program/js/list.js b/program/js/list.js
index 0d124ac..ff0544f 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -350,8 +350,10 @@
this.in_selection_before = false;
// row was double clicked
- if (this.rows && dblclicked && this.in_selection(id))
+ if (this.rows && dblclicked && this.in_selection(id)) {
this.triggerEvent('dblclick');
+ now = 0;
+ }
else
this.triggerEvent('click');
--
Gitblit v1.9.1