modificado fichero ajax para tener getpromise

This commit is contained in:
2025-06-28 20:17:15 +02:00
parent bdc0252c72
commit bdb1d1aaec

View File

@ -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) => {