From 2842088b755af8aac1b3896a9cff2a53049b44ce Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 4 Jun 2012 12:56:48 +0200 Subject: [PATCH] Contacts: When editing photo on a newly created contact the name in the contact list was cleared. --- apps/contacts/js/contacts.js | 1 + 1 file changed, 1 insertion(+) 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()) { -- 2.39.5