From: Florian Zeitz Date: Wed, 26 Aug 2009 22:17:10 +0000 (+0200) Subject: Handle multiple e-mail addrs. and telephnone nrs. X-Git-Url: https://git.babelmonkeys.de/?a=commitdiff_plain;h=412f9e9363e340613a35762dfff2b10bd61bf7ad;p=socialXMPP.git Handle multiple e-mail addrs. and telephnone nrs. --- diff --git a/scripts/basic.js b/scripts/basic.js index fbb8d85..292f666 100644 --- a/scripts/basic.js +++ b/scripts/basic.js @@ -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())); }); diff --git a/vCard.html b/vCard.html index 1769db4..cd173ed 100644 --- a/vCard.html +++ b/vCard.html @@ -15,8 +15,8 @@
  • Birthday:
  • Telephone (Home):
  • Telephone (Work):
  • -
  • E-Mail (Home):
  • -
  • E-Mail (Work):
  • +
  • E-Mail (Home):
  • +
  • E-Mail (Work):
  • Country:
  • E-Mail: