From 1e2d550301bd5ebf98bef3f4b73b58f1790ffea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Wed, 6 Nov 2024 22:10:09 +0100 Subject: [PATCH] archivos resumen --- .../vuexy/form/presupuestos/cliente/items/_resumen.php | 2 +- .../js/safekat/pages/presupuestoCliente/resumen.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php index 7cdfa40f..c48602eb 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php @@ -184,7 +184,7 @@ -
+

Ficheros

diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js index a976123f..7154d427 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js @@ -71,8 +71,9 @@ class Resumen { } } - init_dropzone(presupuesto_id) { + init_dropzone() { + let id = this.presupuesto_id; Dropzone.autoDiscover = false; const previewTemplate = `
@@ -111,7 +112,7 @@ class Resumen { $.ajax({ url: "/presupuestos/presupuestocliente/get_files", type: 'POST', - data: { presupuesto_id: presupuesto_id }, + data: { presupuesto_id: id } }).done(function (response) { if (response == null || response == "") { @@ -142,7 +143,7 @@ class Resumen { }); } }); - } + }, }); } @@ -176,7 +177,7 @@ class Resumen { processData: false, // Indicar a jQuery que no procese los datos contentType: false // Indicar a jQuery que no establezca el tipo de contenido }).done(function (response) { - + popSuccessAlert("Archivos actualizados correctamente"); }).always(function () { $('#loader').hide(); });