1
0
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:
Allan Jardine 2014-03-19 10:53:21 +00:00
parent c0c1db422f
commit 0dab1e20de
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
a6ba26cc32db737bea178fac2a23d2ea2f7923af
d9f16a4ed28aafc6c68a1fa4174e5e7ebf4d7181

View File

@ -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 );
}