summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-28 19:43:54 +0000
committerthomascube <thomas@roundcube.net>2008-02-28 19:43:54 +0000
commitbf36a9a7e313c05d206791b89fe26f7b06bb8d70 (patch)
treed4cd9cff2715d4284f338ace6f3d37fe0a964679 /program/js
parentfa7539e7aded38fd87f81d5db083b7e3b1af0547 (diff)
Fix quirky message selection
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js2
-rw-r--r--program/js/list.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index aa3395335..07157244d 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -695,7 +695,7 @@ function rcube_webmail()
if (props._row.uid)
{
uid = props._row.uid;
- this.message_list.dont_select = true;
+
// toggle read/unread
if (this.message_list.rows[uid].deleted) {
flag = 'undelete';
diff --git a/program/js/list.js b/program/js/list.js
index b9750fa47..e42d3f6b7 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -207,13 +207,13 @@ blur: function()
*/
drag_row: function(e, id)
{
- this.in_selection_before = this.in_selection(id) ? id : false;
-
// don't do anything (another action processed before)
var evtarget = rcube_event.get_target(e);
if (this.dont_select || (evtarget && (evtarget.tagName == 'INPUT' || evtarget.tagName == 'IMG')))
return false;
+ this.in_selection_before = this.in_selection(id) ? id : false;
+
// selects currently unselected row
if (!this.in_selection_before)
{