aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/TimeUnits.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 13:43:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 13:43:31 +1200
commit24ed72ab26fd31769e334b928316b038b4d8b647 (patch)
treedb8e3b6bb4a5e9a5dd003bb6cc355ff6bceb9a11 /web/app/store/TimeUnits.js
parentd2139af877194952e3d49ca882188bcebbbd927e (diff)
downloadtrackermap-server-24ed72ab26fd31769e334b928316b038b4d8b647.tar.gz
trackermap-server-24ed72ab26fd31769e334b928316b038b4d8b647.tar.bz2
trackermap-server-24ed72ab26fd31769e334b928316b038b4d8b647.zip
More changes to store classes
Diffstat (limited to 'web/app/store/TimeUnits.js')
-rw-r--r--web/app/store/TimeUnits.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/web/app/store/TimeUnits.js b/web/app/store/TimeUnits.js
index 5d96f3b8b..047fd6016 100644
--- a/web/app/store/TimeUnits.js
+++ b/web/app/store/TimeUnits.js
@@ -16,10 +16,16 @@
Ext.define('Traccar.store.TimeUnits', {
extend: 'Ext.data.Store',
- fields: ['multiplier', 'name'],
- data: [
- {'multiplier': 1, 'name': strings.sharedSecond},
- {'multiplier': 60, 'name': strings.sharedMinute},
- {'multiplier': 3600, 'name': strings.sharedHour}
- ]
+ fields: ['name', 'factor'],
+
+ data: [{
+ name: strings.sharedSecond,
+ factor: 1
+ }, {
+ name: strings.sharedMinute,
+ factor: 60
+ }, {
+ name: strings.sharedHour,
+ factor: 3600
+ }]
});