From 5849cbf6d3db937b3fd5145a39174e978c7f5d18 Mon Sep 17 00:00:00 2001 From: Oto Valek Date: Sat, 25 Mar 2023 15:29:00 +0100 Subject: [PATCH] Apply thousandSeparator to integer values --- src/js/classes/columns/FooTable.NumberColumn.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/classes/columns/FooTable.NumberColumn.js b/src/js/classes/columns/FooTable.NumberColumn.js index ec57071d..878c566f 100644 --- a/src/js/classes/columns/FooTable.NumberColumn.js +++ b/src/js/classes/columns/FooTable.NumberColumn.js @@ -52,9 +52,7 @@ formatter: function(value, options, rowData){ if (value == null) return ''; var s = (value + '').split('.'); - if (s.length == 2 && s[0].length > 3) { - s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, this.thousandSeparator); - } + s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, this.thousandSeparator); return s.join(this.decimalSeparator); } });