diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-16 19:45:57 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-16 19:45:57 +1200 |
commit | c83cd82f605e93d17666ce5fd165552e56e21a31 (patch) | |
tree | 8795aaf5b88e2073a31120c6055cefe1cdac808b /web/app/view/state | |
parent | 2c9cbb340ff17a8af0129ab7a4ffa9e535c26a22 (diff) | |
download | trackermap-server-c83cd82f605e93d17666ce5fd165552e56e21a31.tar.gz trackermap-server-c83cd82f605e93d17666ce5fd165552e56e21a31.tar.bz2 trackermap-server-c83cd82f605e93d17666ce5fd165552e56e21a31.zip |
Add attribute formatter class
Diffstat (limited to 'web/app/view/state')
-rw-r--r-- | web/app/view/state/StateController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js index 91fa7714f..9019d996e 100644 --- a/web/app/view/state/StateController.js +++ b/web/app/view/state/StateController.js @@ -94,7 +94,7 @@ Ext.define('Traccar.view.state.StateController', { store.add(Ext.create('Traccar.model.Attribute', { priority: this.keys[key].priority, name: this.keys[key].name, - value: Traccar.getApplication().getRenderer(key)(position.get(key)) + value: Traccar.AttributeFormatter.getFormatter(key)(position.get(key)) })); } } @@ -112,7 +112,7 @@ Ext.define('Traccar.view.state.StateController', { name: key.replace(/^./, function (match) { return match.toUpperCase(); }), - value: Traccar.getApplication().getRenderer(key)(attributes[key]) + value: Traccar.AttributeFormatter.getFormatter(key)(attributes[key]) })); } } |