diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-12-18 20:57:35 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-12-18 20:57:35 +0100 |
commit | 538e64c572220bba43960a3073468c0ce3dc5f4c (patch) | |
tree | 0d680bad2bd411f5abc25477b99bc6f844e01da7 /plugins/vcard_attachments/vcardattach.js | |
parent | 774f9dc8350b2a4e41213e16e0a30560e2d41ff1 (diff) |
Fix Closure-compiler warnings, small code improvements
Diffstat (limited to 'plugins/vcard_attachments/vcardattach.js')
-rw-r--r-- | plugins/vcard_attachments/vcardattach.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/vcard_attachments/vcardattach.js b/plugins/vcard_attachments/vcardattach.js index 29bc1a60f..b287acd4a 100644 --- a/plugins/vcard_attachments/vcardattach.js +++ b/plugins/vcard_attachments/vcardattach.js @@ -1,4 +1,4 @@ -/* +/** * vcard_attachments plugin script * @version @package_version@ */ @@ -13,6 +13,7 @@ function plugin_vcard_save_contact(mime_id) 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="" />'); } |