mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'fix/maquinas_papeles_seleccionados' into 'main'
corregido el problema que no cogia la rotativa al mostrar los papeles See merge request jjimenez/safekat!481
This commit is contained in:
@ -253,7 +253,7 @@
|
||||
url: '<?= route_to('updateMaquinaPapelOnTarifasChange') ?>',
|
||||
data: {
|
||||
maquina_id: id,
|
||||
isRotativa: isRotativa.watch,
|
||||
isRotativa: ()=>{ return $('#isRotativa').prop('checked')?1:0},
|
||||
isInkjet: $('#isTinta').prop('checked'),
|
||||
<?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v,
|
||||
},
|
||||
@ -435,11 +435,7 @@
|
||||
yeniden(json.<?= csrf_token() ?>);
|
||||
if(json.error){
|
||||
document.getElementById("check_" + json.data.papel_impresion_id).checked = false;
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: '<?= lang('Basic.global.sweet.error_tittle') ?>',
|
||||
text: json.error,
|
||||
});
|
||||
popErrorAlert(json.error, 'sk-alert-2');
|
||||
}
|
||||
});
|
||||
|
||||
@ -543,7 +539,7 @@
|
||||
url: '<?= route_to('dataTableOfMaquinasPapelesImpresion') ?>',
|
||||
data: function (d) {
|
||||
d.maquina_id = id;
|
||||
d.isRotativa = isRotativa.watch;
|
||||
d.isRotativa = $('#isRotativa').prop('checked')?1:0;
|
||||
d.webguard_token = '<?= csrf_hash() ?>';
|
||||
},
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user