1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-18 16:54:14 +01:00

Fix: fnInfoCallback was not being executed in the DataTables' instance scope

This commit is contained in:
Allan Jardine 2011-12-15 08:08:41 +00:00
parent f1a74f3c25
commit 8714f7cc0e
2 changed files with 4 additions and 2 deletions

View File

@ -2439,7 +2439,8 @@
if ( oSettings.oLanguage.fnInfoCallback !== null )
{
sOut = oSettings.oLanguage.fnInfoCallback( oSettings, iStart, iEnd, iMax, iTotal, sOut );
sOut = oSettings.oLanguage.fnInfoCallback.call( oSettings.oInstance,
oSettings, iStart, iEnd, iMax, iTotal, sOut );
}
var n = oSettings.aanFeatures.i;

View File

@ -93,7 +93,8 @@ function _fnUpdateInfo ( oSettings )
if ( oSettings.oLanguage.fnInfoCallback !== null )
{
sOut = oSettings.oLanguage.fnInfoCallback( oSettings, iStart, iEnd, iMax, iTotal, sOut );
sOut = oSettings.oLanguage.fnInfoCallback.call( oSettings.oInstance,
oSettings, iStart, iEnd, iMax, iTotal, sOut );
}
var n = oSettings.aanFeatures.i;