constraint btn-edit event inside table not in $(document)

This commit is contained in:
amazuecos
2025-04-12 08:00:26 +02:00
parent ba54d99185
commit e7394999ab

View File

@ -18,7 +18,7 @@ class ClienteFacturacion {
$(this).tab('show');
});
$(document).on('click', '.btn-edit', function (e) {
$('#tableOfFacturasCliente').on('click', '.btn-edit', function (e) {
window.location.href = '/facturas/edit/' + $(this).attr('data-id');
});