From 65c95c7b386e040a13ef7406a4ae9ec91f1b39c2 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 05 Mar 2015 02:44:25 -0500
Subject: [PATCH] Fix missing vcard_attachment icon on messages list (#1490303)

---
 CHANGELOG                                |    1 +
 plugins/vcard_attachments/vcardattach.js |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 384e8a1..cccb2d6 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -25,6 +25,7 @@
 - Fix so localized folder name is displayed in multi-folder search result (#1490243)
 - Fix javascript error after creating a folder which is a subfolder of another one (#1490297)
 - Fix bug where subject of sent/saved message was removed if mbstring wasn't installed (#1490295)
+- Fix missing vcard_attachment icon on messages list (#1490303)
 
 RELEASE 1.1.0
 -------------
diff --git a/plugins/vcard_attachments/vcardattach.js b/plugins/vcard_attachments/vcardattach.js
index 1019448..4009662 100644
--- a/plugins/vcard_attachments/vcardattach.js
+++ b/plugins/vcard_attachments/vcardattach.js
@@ -28,7 +28,8 @@
   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="" />');
+    $('#rcmrow' + rcmail.html_identifier(data.uid, true) + ' > td.attachment')
+      .html('<img src="' + rcmail.env.vcard_icon + '" alt="" />');
   }
 }
 

--
Gitblit v1.9.1