|
@@ -1951,6 +1951,12 @@ class BootstrapTable {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
error: jqXHR => {
|
|
error: jqXHR => {
|
|
|
|
|
+ // abort ajax by multiple request
|
|
|
|
|
+ if (jqXHR && jqXHR.status === 0 && this._xhrAbort) {
|
|
|
|
|
+ this._xhrAbort = false
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let data = []
|
|
let data = []
|
|
|
|
|
|
|
|
if (this.options.sidePagination === 'server') {
|
|
if (this.options.sidePagination === 'server') {
|
|
@@ -1968,6 +1974,7 @@ class BootstrapTable {
|
|
|
Utils.calculateObjectValue(this, this.options.ajax, [request], null)
|
|
Utils.calculateObjectValue(this, this.options.ajax, [request], null)
|
|
|
} else {
|
|
} else {
|
|
|
if (this._xhr && this._xhr.readyState !== 4) {
|
|
if (this._xhr && this._xhr.readyState !== 4) {
|
|
|
|
|
+ this._xhrAbort = true
|
|
|
this._xhr.abort()
|
|
this._xhr.abort()
|
|
|
}
|
|
}
|
|
|
this._xhr = $.ajax(request)
|
|
this._xhr = $.ajax(request)
|