From 7cf9475067129efee5bcb4c3f7913f055020804a Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 8 Oct 2010 09:45:17 +0000 Subject: - Add message content-type to the message flags in add_message_row(), can be used e.g. to set message row style/icon according to message type git-svn-id: https://svn.roundcube.net/trunk@4063 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 9c3252f53..618e07404 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1565,6 +1565,7 @@ function rcube_webmail() parent_uid: flags.parent_uid?flags.parent_uid:0, selected: this.select_all_mode || this.message_list.in_selection(uid), ml: flags.ml?1:0, + ctype: flags.ctype, // flags from plugins flags: flags.extra_flags }); @@ -1658,7 +1659,10 @@ function rcube_webmail() html = ' '; } else if (c == 'attachment') { - html = flags.attachment ? ' ' : ' '; + if (/application\/|multipart\/m/.test(flags.ctype)) + html = ' '; + else + html = ' '; } else if (c == 'threads') html = expando; -- cgit v1.2.3