summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-30 08:04:27 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-30 08:04:27 +0000
commit4d1c458fc7db83d7a7b9aba19f547c12556f9f49 (patch)
treeecff301b163e9708d474e5021218f75363367ee7 /roundcubemail/program
parent28736d4573be9355a28c5c77893de2a7fc6068f1 (diff)
- Fix marking messages as unread on all pages (#1486592)
git-svn-id: https://svn.roundcube.net/trunk@3444 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js19
1 files changed, 8 insertions, 11 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index ae85c254d..e73dec690 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -2312,9 +2312,9 @@ function rcube_webmail()
// set a specific flag to one or more messages
this.mark_message = function(flag, uid)
{
- var a_uids = new Array();
- var r_uids = new Array();
- var selection = this.message_list ? this.message_list.get_selection() : new Array();
+ var a_uids = new Array(),
+ r_uids = new Array(),
+ selection = this.message_list ? this.message_list.get_selection() : new Array();
if (uid)
a_uids[0] = uid;
@@ -2346,7 +2346,7 @@ function rcube_webmail()
}
// nothing to do
- if (!r_uids.length)
+ if (!r_uids.length && !this.select_all_mode)
return;
switch (flag)
@@ -2405,15 +2405,12 @@ function rcube_webmail()
}
var all_deleted = true;
- for (var i=0; i<a_uids.length; i++)
+ for (var uid, i=0; i<a_uids.length; i++)
{
uid = a_uids[i];
- if (rows[uid]) {
- if (!rows[uid].deleted)
- {
- all_deleted = false;
- break;
- }
+ if (rows[uid] && !rows[uid].deleted) {
+ all_deleted = false;
+ break;
}
}