[Svn] r2277 - in trunk/roundcubemail: . program/js

trac at roundcube.net trac at roundcube.net
Fri Feb 6 15:42:40 CET 2009


Author: alec
Date: 2009-02-06 08:42:39 -0600 (Fri, 06 Feb 2009)
New Revision: 2277

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/js/list.js
Log:
- Fix pressing select all/unread multiple times (#1485723)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2009-02-06 14:13:37 UTC (rev 2276)
+++ trunk/roundcubemail/CHANGELOG	2009-02-06 14:42:39 UTC (rev 2277)
@@ -3,6 +3,7 @@
 
 2009/02/06 (alec)
 ----------
+- Fix pressing select all/unread multiple times (#1485723)
 - Fix selecting all unread does not honor new messages (#1485724)
 
 2009/02/05 (alec)

Modified: trunk/roundcubemail/program/js/list.js
===================================================================
--- trunk/roundcubemail/program/js/list.js	2009-02-06 14:13:37 UTC (rev 2276)
+++ trunk/roundcubemail/program/js/list.js	2009-02-06 14:42:39 UTC (rev 2277)
@@ -506,8 +506,8 @@
 
   // reset but remember selection first
   var select_before = this.selection.join(',');
-  this.clear_selection();
-
+  this.selection = new Array();
+  
   for (var n in this.rows)
   {
     if (!filter || (this.rows[n] && this.rows[n][filter] == true))
@@ -515,6 +515,11 @@
       this.last_selected = n;
       this.highlight_row(n, true);
     }
+    else if (this.rows[n])
+    {
+      this.set_classname(this.rows[n].obj, 'selected', false);
+      this.set_classname(this.rows[n].obj, 'unfocused', false);
+    }
   }
 
   // trigger event if selection changed

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



More information about the Svn mailing list