summaryrefslogtreecommitdiffstats
path: root/apps/contacts/js
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-08-06 22:32:06 +0200
committerJakob Sack <kde@jakobsack.de>2011-08-06 22:32:06 +0200
commit2f10598af69209f2e84797aaf3399536f824f564 (patch)
tree6b457c19fae5d45ea760f4429b4038811b22af07 /apps/contacts/js
parentd9ccbe96dda717712d67274c777a0e614743784f (diff)
downloadnextcloud-server-2f10598af69209f2e84797aaf3399536f824f564.tar.gz
nextcloud-server-2f10598af69209f2e84797aaf3399536f824f564.zip
New app: contacts
Diffstat (limited to 'apps/contacts/js')
-rw-r--r--apps/contacts/js/interface.js14
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;
+ });
+});