]> git.babelmonkeys.de Git - socialXMPP.git/commitdiff
Handle multiple e-mail addrs. and telephnone nrs.
authorFlorian Zeitz <florob@babelmonkeys.de>
Wed, 26 Aug 2009 22:17:10 +0000 (00:17 +0200)
committerFlorian Zeitz <florob@babelmonkeys.de>
Wed, 26 Aug 2009 22:17:10 +0000 (00:17 +0200)
scripts/basic.js
vCard.html

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()));
     });
 
index 1769db4fc62dd69c476aa3a5a7e93542109230ee..cd173eded008a69dd3c8e9167cae823b1849484d 100644 (file)
@@ -15,8 +15,8 @@
       <li id="BDAY"><span class="vCardName">Birthday: </span></li>
       <li id="TELHOME"><span class="vCardName">Telephone (Home): </span></li>
       <li id="TELWORK"><span class="vCardName">Telephone (Work): </span></li>
-      <li id="EMAILHOME"><span class="vCardName">E-Mail (Home): </span></li>
-      <li id="EMAILWORK"><span class="vCardName">E-Mail (Work): </span></li>
+      <li id="EMAILHOME"><span class="vCardName">E-Mail (Home):</span></li>
+      <li id="EMAILWORK"><span class="vCardName">E-Mail (Work):</span></li>
       <li id="CTRY"><span class="vCardName">Country: </span></li>
       <li id="USERID"><span class="vCardName">E-Mail: </span></li>
     </ul>