Skip to content

Commit

Permalink
Fixed: Processing indicator wasn't being shown during initialisation …
Browse files Browse the repository at this point in the history
…for non-Ajax sourced data, if it was enabled
  • Loading branch information
Allan Jardine committed Oct 16, 2010
1 parent 139a3f7 commit 6adec72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions media/js/jquery.dataTables.js
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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++ )
Expand Down

0 comments on commit 6adec72

Please sign in to comment.