From e7394999ab75cbf065fe2736d817f8b851e954d3 Mon Sep 17 00:00:00 2001 From: amazuecos Date: Sat, 12 Apr 2025 08:00:26 +0200 Subject: [PATCH] constraint btn-edit event inside table not in $(document) --- httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js b/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js index 3b0d05ab..d8a48c0a 100644 --- a/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js +++ b/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js @@ -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'); });