]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: When editing photo on a newly created contact the name in the contact list...
authorThomas Tanghus <thomas@tanghus.net>
Mon, 4 Jun 2012 10:56:48 +0000 (12:56 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 4 Jun 2012 11:14:31 +0000 (13:14 +0200)
apps/contacts/js/contacts.js

index 61591782064dcbc584768c9b33f38d68eafe7034..df3b59c349a5c8ec71fc0cca61a7ffc335d3f175 100644 (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()) {