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

trac at roundcube.net trac at roundcube.net
Mon Oct 6 11:37:07 CEST 2008


Author: alec
Date: 2008-10-06 04:37:07 -0500 (Mon, 06 Oct 2008)
New Revision: 1943

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- added 'flagged' class handling in set_message()


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2008-10-06 09:32:09 UTC (rev 1942)
+++ trunk/roundcubemail/program/js/app.js	2008-10-06 09:37:07 UTC (rev 1943)
@@ -1614,6 +1614,17 @@
       this.set_classname(rows[uid].obj, 'deleted', false);
       }
 
+    if (rows[uid].flagged && rows[uid].classname.indexOf('flagged')<0)
+      {
+      rows[uid].classname += ' flagged';
+      this.set_classname(rows[uid].obj, 'flagged', true);
+      }
+    else if (!rows[uid].flagged && rows[uid].classname.indexOf('flagged')>=0)
+      {
+      rows[uid].classname = rows[uid].classname.replace(/\s*flagged/, '');
+      this.set_classname(rows[uid].obj, 'flagged', false);
+      }
+
     this.set_message_icon(uid);
     }
 

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



More information about the Svn mailing list