mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-02 14:24:10 +01:00
20 lines
478 B
JavaScript
20 lines
478 B
JavaScript
$(document).ready(function(){
|
|
$('.contacts_contacts').find('li').live('click',function(){
|
|
var id = $(this).attr('x-id');
|
|
$.getJSON('details.php',{'id':id},function(jsondata){
|
|
if(jsondata.status == 'success'){
|
|
$('.contacts_details').html(jsondata.data.page);
|
|
}
|
|
else{
|
|
alert(jsondata.data.message);
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
|
|
$('.contacts_addressbooksexpander').click(function(){
|
|
$('.contacts_addressbooksdetails').toggle();
|
|
return false;
|
|
});
|
|
});
|