[Svn] r3444 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Tue Mar 30 10:04:27 CEST 2010


Author: alec
Date: 2010-03-30 03:04:27 -0500 (Tue, 30 Mar 2010)
New Revision: 3444

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Fix marking messages as unread on all pages (#1486592)


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-03-30 06:29:23 UTC (rev 3443)
+++ trunk/roundcubemail/program/js/app.js	2010-03-30 08:04:27 UTC (rev 3444)
@@ -2312,9 +2312,9 @@
   // 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 @@
       }
 
     // nothing to do
-    if (!r_uids.length)
+    if (!r_uids.length && !this.select_all_mode)
       return;
 
     switch (flag)
@@ -2405,15 +2405,12 @@
     }
     
     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;
       }
     }
     

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list