diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-10-04 21:16:48 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-10-04 21:16:57 +0200 |
commit | 2c95c799e6b4b433dccb6efe04fe2c6dc9e5d9f9 (patch) | |
tree | a4579db8eb4782088629a45e232bd4b773d1cddd /apps/contacts/js | |
parent | fada3517b0e461e2e6a112d6e4f6eb71d856816b (diff) | |
download | nextcloud-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.js | 2 |
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); |