From 398cb23f1112a69095cbbe3f4ce633c99d4da215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Mon, 20 Jan 2025 12:58:42 +0100 Subject: [PATCH] corregido el problema que no cogia la rotativa al mostrar los papeles --- .../form/configuracion/maquinas/viewMaquinaForm.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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',