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

trac at roundcube.net trac at roundcube.net
Fri Jun 18 19:17:02 CEST 2010


Author: alec
Date: 2010-06-18 12:17:01 -0500 (Fri, 18 Jun 2010)
New Revision: 3764

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Extend rcmail.env.messages with 'flags' object for plugin's flags (#1486266)


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-06-18 13:00:58 UTC (rev 3763)
+++ trunk/roundcubemail/program/js/app.js	2010-06-18 17:17:01 UTC (rev 3764)
@@ -1538,7 +1538,7 @@
         }
       }
     }
-    
+
     return allow ? (copy ? 2 : 1) : 0;
   };
 
@@ -1594,7 +1594,9 @@
       depth: flags.depth?flags.depth:0,
       unread_children: flags.unread_children?flags.unread_children:0,
       parent_uid: flags.parent_uid?flags.parent_uid:0,
-      selected: this.select_all_mode || this.message_list.in_selection(uid)
+      selected: this.select_all_mode || this.message_list.in_selection(uid),
+      // flags from plugins
+      flags: flags.extra_flags
     });
 
     var c, tree = expando = '',
@@ -4927,7 +4929,7 @@
 
     querystring += (querystring ? '&' : '') + '_remote=1';
     var url = this.env.comm_path + '&_action=' + action + '&' + querystring;
-                                              
+
     // send request
     console.log('HTTP GET: ' + url);
     $.get(url, { _unlock:(lock?1:0) }, function(data){ ref.http_response(data); }, 'json');

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



More information about the Svn mailing list