1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-19 12:52:11 +01:00

Fixed: Processing indicator wasn't being shown during initialisation for non-Ajax sourced data, if it was enabled

This commit is contained in:
Allan Jardine 2010-10-16 18:10:25 +01:00
parent 139a3f7f13
commit 6adec72aae

View File

@ -2236,6 +2236,9 @@
/* Draw the headers for the table */ /* Draw the headers for the table */
_fnDrawHead( oSettings ); _fnDrawHead( oSettings );
/* Okay to show that something is going on now */
_fnProcessingDisplay( oSettings, true );
/* Calculate sizes for columns */ /* Calculate sizes for columns */
if ( oSettings.oFeatures.bAutoWidth ) if ( oSettings.oFeatures.bAutoWidth )
{ {
@ -2267,8 +2270,6 @@
/* if there is an ajax source */ /* if there is an ajax source */
if ( oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide ) if ( oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
{ {
_fnProcessingDisplay( oSettings, true );
oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, [], function(json) { oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, [], function(json) {
/* Got the data - add it to the table */ /* Got the data - add it to the table */
for ( i=0 ; i<json.aaData.length ; i++ ) for ( i=0 ; i<json.aaData.length ; i++ )