summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-10-25 19:27:49 +0200
committerAleksander Machniak <machniak@kolabsys.com>2013-10-25 19:27:49 +0200
commit89e50739b4ea47ef21e5d4864b7101585a94bea8 (patch)
tree6e16606ea62541d168967f2993636a8d930dfd37 /program/js/list.js
parent113b461dfd626c11fda76bfa25cfada9e1b1fcc6 (diff)
Refactored status/flag toggle code, added touch event support on flag and status icons.
Fixed regression in commit 4e4c2511bc00cfc0 where click on flag/status/expando icons was selecting the message row.
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 33f88ab10..0b6f416e3 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -457,10 +457,11 @@ click_row: function(e, id)
var dblclicked = now - this.rows[id].clicked < this.dblclick_time;
// selects/unselects currently selected row
- if (!this.drag_active && !dblclicked)
+ if (!this.drag_active && this.in_selection_before == id && !dblclicked)
this.select_row(id, mod_key, true);
-
+
this.drag_start = false;
+ this.in_selection_before = false;
// row was double clicked
if (this.rowcount && dblclicked && this.in_selection(id)) {