mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
al clickar en una linea se edita
This commit is contained in:
@ -292,7 +292,13 @@ theTable = $('#tableOfPresupuestos').DataTable({
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
theTable.on('click', 'tr', function () {
|
||||
var data = theTable.row(this).data();
|
||||
console.log(data);
|
||||
var url = '/presupuestos/presupuestocliente/edit/' + data['id'];
|
||||
window.location.href = url;
|
||||
});
|
||||
|
||||
theTable.on( 'draw.dt', function () {
|
||||
|
||||
const dateCols = [1];
|
||||
|
||||
Reference in New Issue
Block a user