Contacts: When editing photo on a newly created contact the name in the contact list was cleared.

This commit is contained in:
Thomas Tanghus 2012-06-04 13:13:43 +02:00
parent 300f6894e0
commit 74ac2ac63a
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,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()) {