terminado modulo tarifas acabado

This commit is contained in:
Jaime Jiménez
2023-06-14 12:42:02 +02:00
parent f49e83b582
commit e79cbb4f9c
4 changed files with 24 additions and 7 deletions

View File

@ -135,7 +135,7 @@
yeniden(json.<?= csrf_token() ?>);
});
editor.on( 'submitComplete', function ( e, json, data, action ) {
editor.on( 'submitSuccess', function ( e, json, data, action ) {
theTable.clearPipeline();
theTable.draw();
@ -180,7 +180,9 @@
orderable: false,
searchable: false,
targets: [lastColNr]
}
},
{"orderData": [ 0, 1 ], "targets": 0 },
],
language: {
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
@ -201,13 +203,14 @@
// Activate an inline edit on click of a table cell
$('#tableOfTarifaacabadolineas').on( 'click', 'tbody span.edit', function (e) {
editor.inline(
theTable.cells(this.parentNode, '*').nodes(),
theTable.cells(this.parentNode.parentNode, '*').nodes(),
{
cancelHtml: '<i class="ti ti-x"></i>',
cancelTrigger: 'span.cancel',
submitHtml: '<i class="ti ti-device-floppy"></i>',
submitTrigger: 'span.edit',
}
submit: 'allIfChanged'
}
);
} );