aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 11:41:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 11:41:08 +1200
commit34a70e81ecb613c3216fcdd581a9724216137b41 (patch)
treeee42bc77c1ade262e154f389ba7ebbb17212620b /web/app/view
parent2fa0652494c511a87516fd71e363600b3ef0a1a6 (diff)
downloadtrackermap-server-34a70e81ecb613c3216fcdd581a9724216137b41.tar.gz
trackermap-server-34a70e81ecb613c3216fcdd581a9724216137b41.tar.bz2
trackermap-server-34a70e81ecb613c3216fcdd581a9724216137b41.zip
Rename parameter to attribute
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/state/State.js2
-rw-r--r--web/app/view/state/StateController.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/web/app/view/state/State.js b/web/app/view/state/State.js
index 681758cb8..99e3a00f7 100644
--- a/web/app/view/state/State.js
+++ b/web/app/view/state/State.js
@@ -23,7 +23,7 @@ Ext.define('Traccar.view.state.State', {
],
controller: 'state',
- store: 'Parameters',
+ store: 'Attributes',
title: strings.stateTitle,
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js
index c027dddc9..8141b93a3 100644
--- a/web/app/view/state/StateController.js
+++ b/web/app/view/state/StateController.js
@@ -86,7 +86,7 @@ Ext.define('Traccar.view.state.StateController', {
var other;
var value;
var unit;
- var store = Ext.getStore('Parameters');
+ var store = Ext.getStore('Attributes');
store.removeAll();
for (var key in position.data) {
@@ -100,7 +100,7 @@ Ext.define('Traccar.view.state.StateController', {
value = Ext.Date.format(value, styles.dateTimeFormat);
}
- store.add(Ext.create('Traccar.model.Parameter', {
+ store.add(Ext.create('Traccar.model.Attribute', {
priority: this.keys[key].priority,
name: this.keys[key].name,
value: this.formatValue(value)
@@ -124,7 +124,7 @@ Ext.define('Traccar.view.state.StateController', {
value = distanceUnits.convert(value, unit) + ' ' + distanceUnits.getUnitName(unit);
}
- store.add(Ext.create('Traccar.model.Parameter', {
+ store.add(Ext.create('Traccar.model.Attribute', {
priority: 999,
name: key.replace(/^./, function (match) {
return match.toUpperCase();
@@ -141,7 +141,7 @@ Ext.define('Traccar.view.state.StateController', {
if (found.getCount() > 0) {
this.updatePosition(found.first());
} else {
- Ext.getStore('Parameters').removeAll();
+ Ext.getStore('Attributes').removeAll();
}
},