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:
parent
e6248382c6
commit
cc1908baaf
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user