1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Fixes for adding contact property

This commit is contained in:
Bart Visscher 2011-10-07 23:01:44 +02:00
parent fd79a6d60b
commit f6df768405
4 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@ $name = $_POST['name'];
$value = $_POST['value'];
$parameters = isset($_POST['parameteres'])?$_POST['parameters']:array();
OC_Contacts_VCard::addVCardProperty($vcard, $name, $value, $parameters);
$property = OC_Contacts_VCard::addVCardProperty($vcard, $name, $value, $parameters);
$line = count($vcard->children) - 1;
$checksum = md5($property->serialize());

View File

@ -75,7 +75,7 @@ $(document).ready(function(){
$('#contacts_addpropertyform input[type="submit"]').live('click',function(){
$.post('ajax/addproperty.php',$('#contacts_addpropertyform').serialize(),function(jsondata){
if(jsondata.status == 'success'){
$('#contacts_cardoptions').before(jsondata.data.page);
$('#contacts_details').append(jsondata.data.page);
$('#contacts_addpropertyform').remove();
$('#contacts_addcontactsparts').remove();
}

View File

@ -290,6 +290,7 @@ class OC_Contacts_VCard{
}
$vcard->add($property);
return $property;
}
/**

View File

@ -1,5 +1,5 @@
<?php if(array_key_exists('FN',$_['details'])): ?>
<table>
<table id="contacts_details">
<?php if(isset($_['details']['PHOTO'])): // Emails first ?>
<tr class="contacts_details_property">
<td class="contacts_details_left">&nbsp;</td>