1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Add event handler for contact list delete button. Refs #101

This commit is contained in:
Thomas Tanghus 2013-06-01 01:25:36 +02:00
parent 5c90ab6b1c
commit bb3012fa0f

View File

@ -943,6 +943,12 @@ OC.Contacts = OC.Contacts || {
});
return;
}
if($(event.target).is('a.delete')) {
$(document).trigger('request.contact.delete', {
contactid: $(this).parents('tr.contact').data('id')
});
return;
}
self.openContact(String($(this).data('id')));
});