mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
constraint btn-edit event inside table not in $(document)
This commit is contained in:
@ -18,7 +18,7 @@ class ClientePedidos {
|
|||||||
$(this).tab('show');
|
$(this).tab('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', '.btn-edit', function (e) {
|
$('#tableOfPedidosCliente').on('click', '.btn-edit', function (e) {
|
||||||
window.location.href = '/pedidos/edit/' + $(this).attr('data-id');
|
window.location.href = '/pedidos/edit/' + $(this).attr('data-id');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -17,8 +17,8 @@ class ClientePresupuestos {
|
|||||||
$(this).tab('show');
|
$(this).tab('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', '.btn-edit', function (e) {
|
$('#tableOfPresupuestosCliente').on('click', '.btn-edit', function (e) {
|
||||||
window.location.href = $('#clienteForm').attr('data-url'); + $(this).attr('data-id');
|
window.location.href = $('#clienteForm').attr('data-url') + $(this).attr('data-id');
|
||||||
});
|
});
|
||||||
|
|
||||||
const lastColNr = $('#tableOfPresupuestosCliente').find("tr:first th").length - 1;
|
const lastColNr = $('#tableOfPresupuestosCliente').find("tr:first th").length - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user