Contacts: When editing photo on a newly created contact the name in the contact list was cleared.
This commit is contained in:
parent
855f404e5c
commit
2842088b75
|
@ -170,6 +170,7 @@ Contacts={
|
||||||
var name = $('#fn').val().strip_tags();
|
var name = $('#fn').val().strip_tags();
|
||||||
var item = $('#contacts [data-id="'+Contacts.UI.Card.id+'"]');
|
var item = $('#contacts [data-id="'+Contacts.UI.Card.id+'"]');
|
||||||
$(item).find('a').html(name);
|
$(item).find('a').html(name);
|
||||||
|
Contacts.UI.Card.fn = name;
|
||||||
var added = false;
|
var added = false;
|
||||||
$('#contacts li').each(function(){
|
$('#contacts li').each(function(){
|
||||||
if ($(this).text().toLowerCase() > name.toLowerCase()) {
|
if ($(this).text().toLowerCase() > name.toLowerCase()) {
|
||||||
|
|
Loading…
Reference in New Issue