mirror of
https://github.com/DataTables/DataTables.git
synced 2026-04-25 03:00:08 -04: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:
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user