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') ?>',
|
url: '<?= route_to('updateMaquinaPapelOnTarifasChange') ?>',
|
||||||
data: {
|
data: {
|
||||||
maquina_id: id,
|
maquina_id: id,
|
||||||
isRotativa: isRotativa.watch,
|
isRotativa: ()=>{ return $('#isRotativa').prop('checked')?1:0},
|
||||||
isInkjet: $('#isTinta').prop('checked'),
|
isInkjet: $('#isTinta').prop('checked'),
|
||||||
<?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v,
|
<?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v,
|
||||||
},
|
},
|
||||||
@ -435,11 +435,7 @@
|
|||||||
yeniden(json.<?= csrf_token() ?>);
|
yeniden(json.<?= csrf_token() ?>);
|
||||||
if(json.error){
|
if(json.error){
|
||||||
document.getElementById("check_" + json.data.papel_impresion_id).checked = false;
|
document.getElementById("check_" + json.data.papel_impresion_id).checked = false;
|
||||||
Swal.fire({
|
popErrorAlert(json.error, 'sk-alert-2');
|
||||||
icon: 'error',
|
|
||||||
title: '<?= lang('Basic.global.sweet.error_tittle') ?>',
|
|
||||||
text: json.error,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -543,7 +539,7 @@
|
|||||||
url: '<?= route_to('dataTableOfMaquinasPapelesImpresion') ?>',
|
url: '<?= route_to('dataTableOfMaquinasPapelesImpresion') ?>',
|
||||||
data: function (d) {
|
data: function (d) {
|
||||||
d.maquina_id = id;
|
d.maquina_id = id;
|
||||||
d.isRotativa = isRotativa.watch;
|
d.isRotativa = $('#isRotativa').prop('checked')?1:0;
|
||||||
d.webguard_token = '<?= csrf_hash() ?>';
|
d.webguard_token = '<?= csrf_hash() ?>';
|
||||||
},
|
},
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user