1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Fix: ajax.reload() wasn't showing the processing display

This commit is contained in:
Allan Jardine 2014-03-14 12:31:43 +00:00
parent 1d0a155226
commit ce54ab1ea5
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
8365a01e098ce80a9ae8f63110456f6a88628340
d20dec838ba326158bc662d09b10d1f18b16e7b5

View File

@ -7082,8 +7082,9 @@
}
else {
// Trigger xhr
_fnProcessingDisplay( settings, true );
_fnBuildAjax( settings, [], function( json ) {
// xxx can this be reduced?
_fnClearTable( settings );
var data = _fnAjaxDataSrc( settings, json );
@ -7092,6 +7093,7 @@
}
_fnReDraw( settings, holdPosition );
_fnProcessingDisplay( settings, false );
} );
}
@ -7101,7 +7103,6 @@
var api = new _Api( settings );
api.one( 'draw', function () {
console.log( api.ajax.json() );
callback( api.ajax.json() );
} );
}