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:
parent
fd79a6d60b
commit
f6df768405
@ -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());
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -290,6 +290,7 @@ class OC_Contacts_VCard{
|
||||
}
|
||||
|
||||
$vcard->add($property);
|
||||
return $property;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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"> </td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user