diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-04-10 14:19:28 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-04-10 14:19:28 +0200 |
commit | a2049621c7283f81fe50b78ab701ddf6a6bd5870 (patch) | |
tree | 08846deb8efd14f70474073488370e5c387e936c | |
parent | 8c45290cab824dc9257dab948f1a70a3556b0040 (diff) |
Allow plugins to define custom attachment classes
-rw-r--r-- | program/js/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 5fe58702d..095f16ee2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1947,7 +1947,9 @@ function rcube_webmail() html = '<span id="flagicn'+row.id+'" class="'+css_class+'"> </span>'; } else if (c == 'attachment') { - if (/application\/|multipart\/(m|signed)/.test(flags.ctype)) + if (flags.attachmentClass) + html = '<span class="'+flags.attachmentClass+'"> </span>'; + else if (/application\/|multipart\/(m|signed)/.test(flags.ctype)) html = '<span class="attachment"> </span>'; else if (/multipart\/report/.test(flags.ctype)) html = '<span class="report"> </span>'; |