diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-08-06 22:32:06 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-08-06 22:32:06 +0200 |
commit | 2f10598af69209f2e84797aaf3399536f824f564 (patch) | |
tree | 6b457c19fae5d45ea760f4429b4038811b22af07 /apps/contacts/js | |
parent | d9ccbe96dda717712d67274c777a0e614743784f (diff) | |
download | nextcloud-server-2f10598af69209f2e84797aaf3399536f824f564.tar.gz nextcloud-server-2f10598af69209f2e84797aaf3399536f824f564.zip |
New app: contacts
Diffstat (limited to 'apps/contacts/js')
-rw-r--r-- | apps/contacts/js/interface.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/contacts/js/interface.js b/apps/contacts/js/interface.js new file mode 100644 index 00000000000..045562b496f --- /dev/null +++ b/apps/contacts/js/interface.js @@ -0,0 +1,14 @@ +$(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; + }); +}); |