From c2ef6cce611966058e0b6f371972ba2ef081df56 Mon Sep 17 00:00:00 2001 From: imnavajas Date: Fri, 11 Aug 2023 18:01:10 +0200 Subject: [PATCH] Cambiado Swal y referencia propia del CSS --- .../papel/viewPapelImpresionForm.php | 32 +++---------------- .../papel/viewPapelImpresionList.php | 3 +- .../tarifas/acabado/viewTarifaAcabadoList.php | 2 +- 3 files changed, 7 insertions(+), 30 deletions(-) diff --git a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionForm.php b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionForm.php index 0694fcee..8f63c14e 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionForm.php +++ b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionForm.php @@ -231,16 +231,9 @@ ] } ); - editor.on( 'initCreate', function () { if ($('#tableOfPapelimpresiontipologias').DataTable().data().count() >= 3){ - Swal.fire({ - title: '', - icon: 'info', - confirmButtonColor: '#3085d6', - confirmButtonText: '', - - }); + popErrorAlert(); } } ); @@ -495,11 +488,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); } }); @@ -511,8 +500,7 @@ .submit(); } ); - - // Para los calculos del precio + // Calculos del precio $("#ancho").on('input', function () { updateValue(); }); @@ -546,22 +534,14 @@ $('#precioPliego').val(value2); } - endSection() ?> + section('css') ?> - - "> - -*/ ?> - - + - - endSection() ?> - section('additionalExternalJs') ?> @@ -570,8 +550,6 @@ - - endSection() ?> diff --git a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionList.php b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionList.php index 4ae5971d..6eeece15 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionList.php +++ b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/viewPapelImpresionList.php @@ -66,8 +66,7 @@ lengthMenu: [ 5, 10, 25, 50, 75, 100, 250, 500, 1000, 2500 ], pageLength: 10, lengthChange: true, - "dom": 'lfBrtip', // 'lfBrtip', // you can try different layout combinations by uncommenting one or the other - // "dom": '<"top"lf><"clear">rt<"bottom"ipB><"clear">', // remember to comment this line if you uncomment the above + "dom": 'lfBrtip', "buttons": [ 'copy', 'csv', 'excel', 'print', { extend: 'pdfHtml5', diff --git a/ci4/app/Views/themes/backend/vuexy/form/tarifas/acabado/viewTarifaAcabadoList.php b/ci4/app/Views/themes/backend/vuexy/form/tarifas/acabado/viewTarifaAcabadoList.php index 8f9a689f..bb18b419 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/tarifas/acabado/viewTarifaAcabadoList.php +++ b/ci4/app/Views/themes/backend/vuexy/form/tarifas/acabado/viewTarifaAcabadoList.php @@ -115,7 +115,7 @@ theTable.row($(row)).invalidate().draw(); popSuccessAlert(data.msg ?? jqXHR.statusText); }).fail((jqXHR, textStatus, errorThrown) => { - popErrorAlert(jqXHR.responseJSON.messages.error) + popErrorAlert(jqXHR.responseJSON.messages.error); }) } });