]> cgit.babelmonkeys.de Git - socialXMPP.git/blobdiff - scripts/basic.js
Handle multiple e-mail addrs. and telephnone nrs.
[socialXMPP.git] / scripts / basic.js
index fbb8d859f5d33db21c200164c9a53856dc7f90f5..292f6666ad1df80974486f749a6a21052029c3de 100644 (file)
@@ -49,15 +49,19 @@ function populateVCard(e, jid) {
        $("#PHOTO img").attr('src', 'data:'+mime+';base64,'+binval);
     }
     $(e).find('TEL:has(HOME)').each(function() {
+       $('#TELHOME').append(' ');
         $('#TELHOME').append(Strophe.xmlTextNode($(this).find('NUMBER').text()));
     });
     $(e).find('TEL:has(WORK)').each(function() {
+       $('#TELWORK').append(' ');
         $('#TELWORK').append(Strophe.xmlTextNode($(this).find('NUMBER').text()));
     });
     $(e).find('EMAIL:has(HOME)').each(function() {
+       $('#EMAILHOME').append(' ');
         $('#EMAILHOME').append(Strophe.xmlTextNode($(this).find('USERID').text()));
     });
     $(e).find('EMAIL:has(WORK)').each(function() {
+       $('#EMAILWORK').append(' ');
         $('#EMAILWORK').append(Strophe.xmlTextNode($(this).find('USERID').text()));
     });