Remove deleted address book from list.

This commit is contained in:
Thomas Tanghus 2012-07-08 23:38:03 +02:00
parent 0b6cd8d203
commit 6d123e90f3
1 changed files with 1 additions and 0 deletions

View File

@ -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'));