1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Merge branch 'master' of github.com:owncloud/apps into contacts_rework

This commit is contained in:
Thomas Tanghus 2012-09-13 02:15:14 +02:00
commit 2fc7f0f12c

View File

@ -425,6 +425,8 @@ OC.Contacts={
if(jsondata.status == 'success'){
OC.Contacts.Card.loadContact(jsondata.data, aid);
var item = OC.Contacts.Contacts.insertContact({data:jsondata.data});
$('#contacts li').removeClass('active');
item.addClass('active');
if(isnew) { // add some default properties
OC.Contacts.Card.addProperty('EMAIL');
OC.Contacts.Card.addProperty('TEL');