mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
modificado fichero ajax para tener getpromise
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user