Remove deleted address book from list.
This commit is contained in:
parent
0b6cd8d203
commit
6d123e90f3
|
@ -1393,6 +1393,7 @@ Contacts={
|
||||||
function(jsondata) {
|
function(jsondata) {
|
||||||
if (jsondata.status == 'success'){
|
if (jsondata.status == 'success'){
|
||||||
$(obj).closest('tr').remove();
|
$(obj).closest('tr').remove();
|
||||||
|
$('#contacts h3[data-id="'+bookid+'"],#contacts ul[data-id="'+bookid+'"]').remove();
|
||||||
Contacts.UI.Contacts.update();
|
Contacts.UI.Contacts.update();
|
||||||
} else {
|
} else {
|
||||||
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
||||||
|
|
Loading…
Reference in New Issue