mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Fix: Only report a general Ajax error when request is complete
- Previously if you cancelled an Ajax request, or the browser did (for example following a link) the error handler would be entered and show an alert. This just ensures that the request is complete before showing an error
This commit is contained in:
parent
c0c1db422f
commit
0dab1e20de
@ -1 +1 @@
|
||||
a6ba26cc32db737bea178fac2a23d2ea2f7923af
|
||||
d9f16a4ed28aafc6c68a1fa4174e5e7ebf4d7181
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -2291,7 +2291,7 @@
|
||||
if ( error == "parsererror" ) {
|
||||
log( oSettings, 0, 'Invalid JSON response', 1 );
|
||||
}
|
||||
else {
|
||||
else if ( xhr.readyState === 4 ) {
|
||||
log( oSettings, 0, 'Ajax error', 7 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user