nextcloud/apps/contacts/js/interface.js

20 lines
478 B
JavaScript
Raw Normal View History

2011-08-07 00:32:06 +04:00
$(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;
});
2011-08-07 01:29:25 +04:00
$('.contacts_addressbooksexpander').click(function(){
$('.contacts_addressbooksdetails').toggle();
return false;
});
2011-08-07 00:32:06 +04:00
});