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

Fix: The check against sAjaxSource for the 'loading...' message should be null rather than an empty string since null is the default for sAjaxSource. This error would result in the loading message being shown if the table has no results initially

This commit is contained in:
Allan Jardine 2011-05-27 19:20:01 +01:00
parent e6248382c6
commit cc1908baaf

View File

@ -3296,7 +3296,7 @@
var sZero = oSettings.oLanguage.sZeroRecords.replace(
'_MAX_', oSettings.fnFormatNumber(oSettings.fnRecordsTotal()) );
if ( oSettings.iDraw == 1 && oSettings.sAjaxSource !== "" )
if ( oSettings.iDraw == 1 && oSettings.sAjaxSource !== null )
{
sZero = oSettings.oLanguage.sLoadingRecords;
}