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 12:56:48 +02:00
parent 855f404e5c
commit 2842088b75
1 changed files with 1 additions and 0 deletions

View File

@ -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()) {