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:
parent
139a3f7f13
commit
6adec72aae
5
media/js/jquery.dataTables.js
vendored
5
media/js/jquery.dataTables.js
vendored
@ -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++ )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user