From cc1908baaff6df0efb65088a41522af4ad91a5fb Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Fri, 27 May 2011 19:20:01 +0100 Subject: [PATCH] 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 --- media/js/jquery.dataTables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index e3cc0b89..6d9e43d4 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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; }