From e72edf4bb54a9031a2b89fbbc6c5fb14a702c3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Tue, 6 Feb 2024 11:33:36 +0100 Subject: [PATCH] arreglado boton guardar breadcrumb --- .../backend/vuexy/form/notification/index.php | 2 +- .../_lineasPresupuestoItems.php | 1 - .../viewCosidotapablandaForm.php | 12 +++++++++--- .../themes/backend/vuexy/main/breadcrumbs.php | 17 +---------------- 4 files changed, 11 insertions(+), 21 deletions(-) diff --git a/ci4/app/Views/themes/backend/vuexy/form/notification/index.php b/ci4/app/Views/themes/backend/vuexy/form/notification/index.php index 56f6c11e..1afde407 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/notification/index.php +++ b/ci4/app/Views/themes/backend/vuexy/form/notification/index.php @@ -139,7 +139,7 @@ cancelButtonText: "", closeOnConfirm: !1 }).then(function(isConfirm) { - console.log(isConfirm); + if (isConfirm.value) { window.location.href = ''+id; } diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php index 2590a733..71accaef 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php @@ -2937,7 +2937,6 @@ function calcularPresupuesto_rot_color(fromComparador=false, updatedTipologias=f if(data.lineas.length >0){ // Se cogen los valores de la linea con los datos correspondientes $.each(data.lineas, function(key, value) { - console.log(value.fields.num_formas) fibra = $('#lp_rot_color_aFavorFibra').prop('checked') if(fromComparador){ if(value.fields.maquina_id === input_data.maquina_id && diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php index 5e3ccee9..fd006643 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php @@ -135,7 +135,6 @@ } }); -console.log(originalValues) // Agregar un evento de cambio a cada campo de entrada formInputs.forEach(function(input) { @@ -170,6 +169,11 @@ console.log(originalValues) } } + $('#bc-save').on( "click", function() { + showBreadCrumbSaveButton(false); + $('#saveForm').click() + } ); + endSection() ?> @@ -194,7 +198,6 @@ console.log(originalValues) save_servicios(); save_datos_envios(); - $.when(fill_bbdd_from_lp(id).then(function(data, textStatus, jqXHR) { generateCompJSON() form = $('#presupuestoForm').serialize() @@ -208,8 +211,11 @@ console.log(originalValues) yeniden(data.) if('errorMensaje' in data) popErrorAlert(data.errorMensaje) - else + else{ + showBreadCrumbSaveButton(false) popSuccessAlert(data.mensaje) + } + } }).fail(function (jqXHR, textStatus, error) { // Handle error here diff --git a/ci4/app/Views/themes/backend/vuexy/main/breadcrumbs.php b/ci4/app/Views/themes/backend/vuexy/main/breadcrumbs.php index 8778a9c7..99fa8a46 100755 --- a/ci4/app/Views/themes/backend/vuexy/main/breadcrumbs.php +++ b/ci4/app/Views/themes/backend/vuexy/main/breadcrumbs.php @@ -26,7 +26,7 @@ -