summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-15 09:00:42 +0200
committerAleksander Machniak <alec@alec.pl>2013-10-15 09:00:42 +0200
commit902b9df7fb4856d3116b67358ed88347e835e237 (patch)
tree78e3e8a5ce26a61ab6d30ac635f4e2ec701f387b /program/js
parenteb6253ccc183de419bce8e70c409b46119dcba24 (diff)
Remove dont_select internal flag, we don't need it anymore
Diffstat (limited to 'program/js')
-rw-r--r--program/js/list.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 996d30808..cb69bc462 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -50,7 +50,6 @@ function rcube_list_widget(list, p)
this.keyboard = false;
this.toggleselect = false;
- this.dont_select = false;
this.drag_active = false;
this.col_drag_active = false;
this.column_fixed = null;
@@ -409,7 +408,7 @@ drag_row: function(e, id)
var evtarget = rcube_event.get_target(e),
tagname = evtarget.tagName.toLowerCase();
- if (this.dont_select || (evtarget && (tagname == 'input' || tagname == 'img' || (tagname != 'a' && evtarget.onclick))))
+ if (evtarget && (tagname == 'input' || tagname == 'img' || (tagname != 'a' && evtarget.onclick)))
return true;
// accept right-clicks
@@ -455,12 +454,6 @@ click_row: function(e, id)
if ((evtarget && (tagname == 'input' || tagname == 'img')))
return true;
- // don't do anything (another action processed before)
- if (this.dont_select) {
- this.dont_select = false;
- return false;
- }
-
var dblclicked = now - this.rows[id].clicked < this.dblclick_time;
// unselects currently selected row
@@ -509,8 +502,6 @@ expand_row: function(e, id)
evtarget = rcube_event.get_target(e),
mod_key = rcube_event.get_modifier(e);
- // Don't select this message
- this.dont_select = true;
// Don't treat double click on the expando as double click on the message.
row.clicked = 0;