aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-21 00:17:06 +1200
committerGitHub <noreply@github.com>2017-06-21 00:17:06 +1200
commit7d2152ca345a76fa38d204648ea0242f62b4b049 (patch)
tree358413a441655abbb9cfc55f5a158da143fdd6ee
parent58eba78776e0ba7f672711268d2c1aaa6d806a85 (diff)
parentea432953c472876dc9d132b57a18f6e9f70d06bd (diff)
downloadtrackermap-web-7d2152ca345a76fa38d204648ea0242f62b4b049.tar.gz
trackermap-web-7d2152ca345a76fa38d204648ea0242f62b4b049.tar.bz2
trackermap-web-7d2152ca345a76fa38d204648ea0242f62b4b049.zip
Merge pull request #509 from Abyss777/spentFuel_format
Format 'spentFuel' as volume
-rw-r--r--web/app/AttributeFormatter.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js
index 0c385672..e63cf890 100644
--- a/web/app/AttributeFormatter.js
+++ b/web/app/AttributeFormatter.js
@@ -129,6 +129,8 @@ Ext.define('Traccar.AttributeFormatter', {
return this.groupIdFormatter;
} else if (key === 'lastUpdate') {
return this.lastUpdateFormatter;
+ } else if (key === 'spentFuel') {
+ return this.numberFormatterFactory(Traccar.Style.numberPrecision, Strings.sharedLiterAbbreviation);
} else {
return this.defaultFormatter;
}