Removed padding.
This commit is contained in:
parent
53091551d8
commit
9c247ce874
|
@ -264,6 +264,18 @@ Contacts={
|
||||||
},
|
},
|
||||||
add:function(n, fn, aid, isnew){ // add a new contact
|
add:function(n, fn, aid, isnew){ // add a new contact
|
||||||
console.log('Add contact: ' + n + ', ' + fn + ' ' + aid);
|
console.log('Add contact: ' + n + ', ' + fn + ' ' + aid);
|
||||||
|
var card = $('#card')[0];
|
||||||
|
if(!card) {
|
||||||
|
console.log('Loading proper card DOM');
|
||||||
|
$.getJSON(OC.filePath('contacts', 'ajax', 'loadcard.php'),{},function(jsondata){
|
||||||
|
if(jsondata.status == 'success'){
|
||||||
|
$('#rightcontent').html(jsondata.data.page);
|
||||||
|
Contacts.UI.loadHandlers();
|
||||||
|
} else{
|
||||||
|
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
$.post(OC.filePath('contacts', 'ajax', 'addcontact.php'), { n: n, fn: fn, aid: aid },
|
$.post(OC.filePath('contacts', 'ajax', 'addcontact.php'), { n: n, fn: fn, aid: aid },
|
||||||
function(jsondata) {
|
function(jsondata) {
|
||||||
if (jsondata.status == 'success'){
|
if (jsondata.status == 'success'){
|
||||||
|
|
Loading…
Reference in New Issue