aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/state
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-13 18:16:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-13 18:16:13 +1200
commit13448f34e263f27610391781d526353791c36026 (patch)
tree07aae3f2f97c3a1329f94ca69930ad97e77c80f3 /web/app/view/state
parentcd86a9e571f64a945e037e054e39d61c59798152 (diff)
downloadtrackermap-server-13448f34e263f27610391781d526353791c36026.tar.gz
trackermap-server-13448f34e263f27610391781d526353791c36026.tar.bz2
trackermap-server-13448f34e263f27610391781d526353791c36026.zip
Add string resources for state
Diffstat (limited to 'web/app/view/state')
-rw-r--r--web/app/view/state/StateController.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js
index 8dd619b72..f85381237 100644
--- a/web/app/view/state/StateController.js
+++ b/web/app/view/state/StateController.js
@@ -31,6 +31,17 @@ Ext.define('Traccar.view.state.StateController', {
init: function() {
},
+ keys: {
+ 'fixTime': strings.report_time,
+ 'latitude': strings.report_latitude,
+ 'longitude': strings.report_longitude,
+ 'valid': strings.report_valid,
+ 'altitude': strings.report_altitude,
+ 'speed': strings.report_speed,
+ 'course': strings.report_course,
+ 'protocol': strings.state_protocol
+ },
+
selectDevice: function(device) {
var position = {
"fixTime":"2012-01-02T01:50:00",
@@ -51,9 +62,9 @@ Ext.define('Traccar.view.state.StateController', {
store.removeAll();
for (var key in position) {
- if (position.hasOwnProperty(key) && key !== 'other') {
+ if (position.hasOwnProperty(key) && this.keys[key] !== undefined) {
store.add(Ext.create('Traccar.model.Parameter', {
- name: key,
+ name: this.keys[key],
value: position[key]
}));
}