mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
JS fix on address book creation.
This commit is contained in:
parent
ec6be92253
commit
ea4f1ebbaf
@ -1076,7 +1076,7 @@ Contacts={
|
|||||||
$.post(url, { id: bookid, name: displayname, active: active, description: description },
|
$.post(url, { id: bookid, name: displayname, active: active, description: description },
|
||||||
function(jsondata){
|
function(jsondata){
|
||||||
if(jsondata.status == 'success'){
|
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();
|
Contacts.UI.Contacts.update();
|
||||||
} else {
|
} else {
|
||||||
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
|
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user