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

remotes/origin/stable4
Thomas Tanghus 13 years ago
parent 300f6894e0
commit 74ac2ac63a
  1. 1
      apps/contacts/js/contacts.js

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

Loading…
Cancel
Save