Browse Source
Merge pull request #9433 from abpframework/liangshiwei/jquery
Allowing the developer to handle ajax error.
pull/9442/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/packs/jquery/src/abp.jquery.js
|
|
|
@ -106,7 +106,7 @@ var abp = abp || {}; |
|
|
|
$dfd.resolve(data); |
|
|
|
userOptions.success && userOptions.success(data); |
|
|
|
}).fail(function (jqXHR) { |
|
|
|
if(jqXHR.status === 0 || jqXHR.statusText === 'abort') { |
|
|
|
if(jqXHR.statusText === 'abort') { |
|
|
|
//ajax request is abort, ignore error handle.
|
|
|
|
return; |
|
|
|
} |
|
|
|
|