summaryrefslogtreecommitdiffstats
path: root/apps/contacts/js
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-10-04 21:16:48 +0200
committerBart Visscher <bartv@thisnet.nl>2011-10-04 21:16:57 +0200
commit2c95c799e6b4b433dccb6efe04fe2c6dc9e5d9f9 (patch)
treea4579db8eb4782088629a45e232bd4b773d1cddd /apps/contacts/js
parentfada3517b0e461e2e6a112d6e4f6eb71d856816b (diff)
downloadnextcloud-server-2c95c799e6b4b433dccb6efe04fe2c6dc9e5d9f9.tar.gz
nextcloud-server-2c95c799e6b4b433dccb6efe04fe2c6dc9e5d9f9.zip
Add new contact name to end of cantact list
Diffstat (limited to 'apps/contacts/js')
-rw-r--r--apps/contacts/js/interface.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/contacts/js/interface.js b/apps/contacts/js/interface.js
index 3ec84a3c8ba..47e9bb10b1f 100644
--- a/apps/contacts/js/interface.js
+++ b/apps/contacts/js/interface.js
@@ -104,6 +104,8 @@ $(document).ready(function(){
if(jsondata.status == 'success'){
$('#rightcontent').data('id',jsondata.data.id);
$('#rightcontent').html(jsondata.data.page);
+ $('#leftcontent .active').removeClass('active');
+ $('#leftcontent ul').append('<li data-id="'+jsondata.data.id+'" class="active"><a href="index.php?id='+jsondata.data.id+'">'+jsondata.data.name+'</a></li>');
}
else{
alert(jsondata.data.message);