From: Thomas Tanghus Date: Mon, 4 Jun 2012 10:56:48 +0000 (+0200) Subject: Contacts: When editing photo on a newly created contact the name in the contact list... X-Git-Tag: v4.5.0beta1~74^2~424^2~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2842088b755af8aac1b3896a9cff2a53049b44ce;p=nextcloud-server.git Contacts: When editing photo on a newly created contact the name in the contact list was cleared. --- diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index 61591782064..df3b59c349a 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -170,6 +170,7 @@ Contacts={ var name = $('#fn').val().strip_tags(); var item = $('#contacts [data-id="'+Contacts.UI.Card.id+'"]'); $(item).find('a').html(name); + Contacts.UI.Card.fn = name; var added = false; $('#contacts li').each(function(){ if ($(this).text().toLowerCase() > name.toLowerCase()) {