aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-16 22:27:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-16 22:27:23 +1200
commite7187ea46a8ca8a0e8d93a030a9d360249b998fa (patch)
tree23f3473ce938b31f062b3a0ca469542254daf74d /web/app/Application.js
parent37f402a3afae13ade44e135ab4ca3e4cf4966425 (diff)
downloadtrackermap-server-e7187ea46a8ca8a0e8d93a030a9d360249b998fa.tar.gz
trackermap-server-e7187ea46a8ca8a0e8d93a030a9d360249b998fa.tar.bz2
trackermap-server-e7187ea46a8ca8a0e8d93a030a9d360249b998fa.zip
Fix attribute formatter functions
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index 91d2b7835..c488818a4 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -68,7 +68,7 @@ Ext.define('Traccar.Application', {
},
getPreference: function(key, defaultValue) {
- return this.getUser().get('distanceUnit') | this.getServer().get('distanceUnit') | defaultValue;
+ return this.getUser().get(key) || this.getServer().get(key) || defaultValue;
}
});