aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-21 17:20:05 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-21 17:27:57 +0500
commitcd3441751d939c06390a850f3457b67abab365a9 (patch)
treee0195d332db2f4d95b9d56d85774ec7930e22f62 /web/app/view
parent364ae5f1862d9d416fc27f9fc56b04c23778d612 (diff)
downloadetbsa-traccar-web-cd3441751d939c06390a850f3457b67abab365a9.tar.gz
etbsa-traccar-web-cd3441751d939c06390a850f3457b67abab365a9.tar.bz2
etbsa-traccar-web-cd3441751d939c06390a850f3457b67abab365a9.zip
Rename "hidden" to "hide"
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/StateController.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index 0ce8b1f..70f0228 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -50,18 +50,18 @@ Ext.define('Traccar.view.StateController', {
init: function () {
- var i, hiddenAttributesPreference, attributesList;
+ var i, hideAttributesPreference, attributesList;
if (Traccar.app.getUser().get('admin') ||
!Traccar.app.getUser().get('deviceReadonly') && !Traccar.app.getPreference('readonly', false)) {
this.lookupReference('computedAttributesButton').setDisabled(
Traccar.app.getBooleanAttributePreference('ui.disableComputedAttributes'));
}
- hiddenAttributesPreference = Traccar.app.getAttributePreference('ui.hiddenPositionAttributes');
- this.hiddenAttributes = {};
- if (hiddenAttributesPreference) {
- attributesList = hiddenAttributesPreference.split(/[ ,]+/).filter(Boolean);
+ hideAttributesPreference = Traccar.app.getAttributePreference('ui.hidePositionAttributes');
+ this.hideAttributes = {};
+ if (hideAttributesPreference) {
+ attributesList = hideAttributesPreference.split(/[ ,]+/).filter(Boolean);
for (i = 0; i < attributesList.length; i++) {
- this.hiddenAttributes[attributesList[i]] = true;
+ this.hideAttributes[attributesList[i]] = true;
}
}
},
@@ -133,7 +133,7 @@ Ext.define('Traccar.view.StateController', {
attributes = this.position.get('attributes');
if (attributes instanceof Object) {
for (key in attributes) {
- if (attributes.hasOwnProperty(key) && !this.hiddenAttributes[key]) {
+ if (attributes.hasOwnProperty(key) && !this.hideAttributes[key]) {
this.lookupAttribute = key;
name = Ext.getStore('PositionAttributes').getAttributeName(key, true);
if (this.position.get('attribute.' + key) !== undefined) {