Skip to content

Commit

Permalink
Fix: When using server-side processing the new sLoadingRecords messag…
Browse files Browse the repository at this point in the history
…e is not used since the draw doesn't progress that far. As a result the same issue as was fixed in commit cc1908b could occur and needs to be addressed here by checking for server-side processing. Regression picked up by unit tests
  • Loading branch information
Allan Jardine committed May 28, 2011
1 parent e769731 commit e9afa98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/js/jquery.dataTables.js
Expand Up @@ -3296,7 +3296,7 @@

var sZero = oSettings.oLanguage.sZeroRecords.replace(
'_MAX_', oSettings.fnFormatNumber(oSettings.fnRecordsTotal()) );
if ( oSettings.iDraw == 1 && oSettings.sAjaxSource !== null )
if ( oSettings.iDraw == 1 && oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
{
sZero = oSettings.oLanguage.sLoadingRecords;
}
Expand Down

0 comments on commit e9afa98

Please sign in to comment.