mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Dev fix: Call number formatter in the correct scope
This commit is contained in:
parent
0d8282c61a
commit
3d1d64bc4e
@ -80,9 +80,9 @@ function _fnInfoMacros ( settings, str )
|
||||
formatter = settings.fnFormatNumber;
|
||||
|
||||
return str.
|
||||
replace(/_START_/g, formatter( start ) ).
|
||||
replace(/_END_/g, formatter( settings.fnDisplayEnd() ) ).
|
||||
replace(/_TOTAL_/g, formatter( settings.fnRecordsDisplay() ) ).
|
||||
replace(/_MAX_/g, formatter( settings.fnRecordsTotal() ) );
|
||||
replace(/_START_/g, formatter.call( settings, start ) ).
|
||||
replace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).
|
||||
replace(/_TOTAL_/g, formatter.call( settings, settings.fnRecordsDisplay() ) ).
|
||||
replace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user