mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
New: Add a thousands seperator option to the language options. As a displayed string in DataTables this should be configurable, and now is with the oLanguage.sInfoThousands options ( "oLanguage": { "sInfoThousands": "'" } for example).
This commit is contained in:
parent
b93d6bc243
commit
e87798781b
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -974,6 +974,7 @@
|
||||
"sInfoEmpty": "Showing 0 to 0 of 0 entries",
|
||||
"sInfoFiltered": "(filtered from _MAX_ total entries)",
|
||||
"sInfoPostFix": "",
|
||||
"sInfoThousands": ",",
|
||||
"sSearch": "Search:",
|
||||
"sUrl": "",
|
||||
"oPaginate": {
|
||||
@ -1368,7 +1369,7 @@
|
||||
{
|
||||
if ( i%3 === 0 && i !== 0 )
|
||||
{
|
||||
out = ','+out;
|
||||
out = this.oLanguage.sInfoThousands+out;
|
||||
}
|
||||
out = a[iLen-i-1]+out;
|
||||
}
|
||||
@ -2481,6 +2482,7 @@
|
||||
_fnMap( oSettings.oLanguage, oLanguage, 'sInfoEmpty' );
|
||||
_fnMap( oSettings.oLanguage, oLanguage, 'sInfoFiltered' );
|
||||
_fnMap( oSettings.oLanguage, oLanguage, 'sInfoPostFix' );
|
||||
_fnMap( oSettings.oLanguage, oLanguage, 'sInfoThousands' );
|
||||
_fnMap( oSettings.oLanguage, oLanguage, 'sSearch' );
|
||||
|
||||
if ( typeof oLanguage.oPaginate != 'undefined' )
|
||||
|
Loading…
Reference in New Issue
Block a user