From bdb1d1aaec82425f1a392c2afaee4a46563d3314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Sat, 28 Jun 2025 20:17:15 +0200 Subject: [PATCH] modificado fichero ajax para tener getpromise --- httpdocs/assets/js/safekat/components/ajax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpdocs/assets/js/safekat/components/ajax.js b/httpdocs/assets/js/safekat/components/ajax.js index 8a92c701..98313bbc 100644 --- a/httpdocs/assets/js/safekat/components/ajax.js +++ b/httpdocs/assets/js/safekat/components/ajax.js @@ -59,6 +59,7 @@ class Ajax { error: this.error }) } + getPromise() { if (this.jqXHR) { this.jqXHR.abort(); @@ -71,7 +72,7 @@ class Ajax { data: this.data, headers: this.headers, success: (response) => { - if (this.success) this.success(response); + if (this.success) this.success(response); resolve(response); }, error: (xhr) => {