summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-08 20:39:26 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-08 20:39:26 +0000
commit85a7bf2bdbf5b17ba0bfbe514070db90fef63a76 (patch)
tree659e02bd3cfa483f64c08966b8e4fd98ce789913 /roundcubemail
parent68cf9824bb7c5d89e09b6aa9e274de5ad2971ec8 (diff)
- update env.messages in set_message_status() to fix some issues with messages marking/flagging
git-svn-id: https://svn.roundcube.net/trunk@1961 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/program/js/app.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 85dd42f07..549de08e1 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1580,6 +1580,8 @@ function rcube_webmail()
rows[uid].forwarded = status;
else if (flag == 'flagged')
rows[uid].flagged = status;
+
+ this.env.messages[uid] = rows[uid];
}
// set message row status, class and icon
@@ -1724,14 +1726,14 @@ function rcube_webmail()
this.message_list.remove_row(id, (n == selection.length-1));
else
{
- rows[id].deleted = true;
+ this.set_message_status(id, 'deleted', true);
if (this.env.read_when_deleted)
- rows[id].unread = false;
+ this.set_message_status(id, 'unread', false);
this.set_message(id);
}
}
}
-
+
// also send search request to get the right messages
if (this.env.search_request)
add_url += '&_search='+this.env.search_request;
@@ -1901,11 +1903,7 @@ function rcube_webmail()
{
uid = a_uids[i];
if (rows[uid])
- {
- rows[uid].unread = false;
- rows[uid].read = true;
- this.set_message(uid);
- }
+ this.set_message(uid, 'unread', false);
}
};