diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-14 17:18:10 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-14 17:18:10 +0000 |
| commit | 74f334ee5ae5764294d2d0e876d38b3f069d29da (patch) | |
| tree | d26051e08a3bb1befcfa0cb8babff5b87f60cf51 /plugins/vcard_attachments/vcardattach.js | |
| parent | 4fa41eb99d4ce16e08958acd128b38baca179e53 (diff) | |
- Make icons skinable
- Show vcard icon on messages list when message is of type vcard
git-svn-id: https://svn.roundcube.net/trunk@4093 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/vcard_attachments/vcardattach.js')
| -rw-r--r-- | plugins/vcard_attachments/vcardattach.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/vcard_attachments/vcardattach.js b/plugins/vcard_attachments/vcardattach.js index 507bbdf99..ef19190e7 100644 --- a/plugins/vcard_attachments/vcardattach.js +++ b/plugins/vcard_attachments/vcardattach.js @@ -9,3 +9,15 @@ function plugin_vcard_save_contact(mime_id) return false; } + +function plugin_vcard_insertrow(data) +{ + var ctype = data.row.ctype; + if (ctype == 'text/vcard' || ctype == 'text/x-vcard' || ctype == 'text/directory') { + $('#rcmrow'+data.uid+' > td.attachment').html('<img src="'+rcmail.env.vcard_icon+'" alt="">'); + } +} + +if (window.rcmail && rcmail.gui_objects.messagelist) { + rcmail.addEventListener('insertrow', function(data, evt) { plugin_vcard_insertrow(data); }); +} |
