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

Fix: When using server-side processing the new sLoadingRecords message is not used since the draw doesn't progress that far. As a result the same issue as was fixed in commit cc1908baaff6df0efb65088a41522af4ad91a5fb could occur and needs to be addressed here by checking for server-side processing. Regression picked up by unit tests

This commit is contained in:
Allan Jardine 2011-05-28 11:17:31 +01:00
parent e769731746
commit e9afa984d4

View File

@ -3296,7 +3296,7 @@
var sZero = oSettings.oLanguage.sZeroRecords.replace( var sZero = oSettings.oLanguage.sZeroRecords.replace(
'_MAX_', oSettings.fnFormatNumber(oSettings.fnRecordsTotal()) ); '_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; sZero = oSettings.oLanguage.sLoadingRecords;
} }