From c5f53243c67faa2d1663ea357e24e37d2c4735d0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 6 Nov 2015 13:56:59 +1300 Subject: Remove demical zeroes from values --- web/app/AttributeFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/AttributeFormatter.js') diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js index b7b2d01a6..44cc7d5a8 100644 --- a/web/app/AttributeFormatter.js +++ b/web/app/AttributeFormatter.js @@ -36,7 +36,7 @@ Ext.define('Traccar.AttributeFormatter', { defaultFormatter: function (value) { if (typeof value === 'number') { - return value.toFixed(2); + return Number(value.toFixed(2)); } else if (typeof value === 'boolean') { return value ? Ext.Msg.buttonText.yes : Ext.Msg.buttonText.no; } else if (value instanceof Date) { -- cgit v1.2.3