1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11: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 */
_fnDrawHead( oSettings );
/* Okay to show that something is going on now */
_fnProcessingDisplay( oSettings, true );
/* Calculate sizes for columns */
if ( oSettings.oFeatures.bAutoWidth )
{
@ -2267,8 +2270,6 @@
/* if there is an ajax source */
if ( oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
{
_fnProcessingDisplay( oSettings, true );
oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, [], function(json) {
/* Got the data - add it to the table */
for ( i=0 ; i<json.aaData.length ; i++ )