Skip to content

Commit

Permalink
New: Add a thousands seperator option to the language options. As a d…
Browse files Browse the repository at this point in the history
…isplayed string in DataTables this should be configurable, and now is with the oLanguage.sInfoThousands options ( "oLanguage": { "sInfoThousands": "'" } for example).
  • Loading branch information
Allan Jardine committed Aug 30, 2011
1 parent b93d6bc commit e877987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion media/js/jquery.dataTables.js
Expand Up @@ -974,6 +974,7 @@
"sInfoEmpty": "Showing 0 to 0 of 0 entries",
"sInfoFiltered": "(filtered from _MAX_ total entries)",
"sInfoPostFix": "",
"sInfoThousands": ",",
"sSearch": "Search:",
"sUrl": "",
"oPaginate": {
Expand Down Expand Up @@ -1368,7 +1369,7 @@
{
if ( i%3 === 0 && i !== 0 )
{
out = ','+out;
out = this.oLanguage.sInfoThousands+out;
}
out = a[iLen-i-1]+out;
}
Expand Down Expand Up @@ -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' )
Expand Down

0 comments on commit e877987

Please sign in to comment.