diff --git a/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php b/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php index 04da18ad..e2f6c63c 100644 --- a/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php +++ b/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php @@ -253,7 +253,7 @@ url: '', data: { maquina_id: id, - isRotativa: isRotativa.watch, + isRotativa: ()=>{ return $('#isRotativa').prop('checked')?1:0}, isInkjet: $('#isTinta').prop('checked'), : v, }, @@ -435,11 +435,7 @@ yeniden(json.); if(json.error){ document.getElementById("check_" + json.data.papel_impresion_id).checked = false; - Swal.fire({ - icon: 'error', - title: '', - text: json.error, - }); + popErrorAlert(json.error, 'sk-alert-2'); } }); @@ -543,7 +539,7 @@ url: '', data: function (d) { d.maquina_id = id; - d.isRotativa = isRotativa.watch; + d.isRotativa = $('#isRotativa').prop('checked')?1:0; d.webguard_token = ''; }, method: 'POST',