]> source.dussan.org Git - nextcloud-server.git/commitdiff
JS fix on address book creation.
authorThomas Tanghus <thomas@tanghus.net>
Tue, 21 Feb 2012 22:15:26 +0000 (23:15 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Tue, 21 Feb 2012 22:22:06 +0000 (23:22 +0100)
apps/contacts/js/contacts.js

index 0e06b650a18afbb405aba6ee6a3dea5780642888..11661320c5901d237f3953eb49f9cac7fd57e776 100644 (file)
@@ -1076,7 +1076,7 @@ Contacts={
                                $.post(url, { id: bookid, name: displayname, active: active, description: description },
                                        function(jsondata){
                                                if(jsondata.status == 'success'){
-                                                       $(button).closest('tr').prev().html(data.page).show().next().remove();
+                                                       $(button).closest('tr').prev().html(jsondata.page).show().next().remove();
                                                        Contacts.UI.Contacts.update();
                                                } else {
                                                        Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);