diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-29 20:20:21 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-29 20:20:21 +1300 |
commit | 86f54b5db9269d0ba010a22e281b379bdae3751f (patch) | |
tree | ae31c6871fd912d08584be9f79408767191db694 /web/app | |
parent | de980d0d3b4b87bc21fa037bafd90f6f72f46082 (diff) | |
download | trackermap-web-86f54b5db9269d0ba010a22e281b379bdae3751f.tar.gz trackermap-web-86f54b5db9269d0ba010a22e281b379bdae3751f.tar.bz2 trackermap-web-86f54b5db9269d0ba010a22e281b379bdae3751f.zip |
Minor adjustment to the devices table
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/edit/Devices.js | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js index d4970eb5..9393b432 100644 --- a/web/app/view/edit/Devices.js +++ b/web/app/view/edit/Devices.js @@ -21,6 +21,7 @@ Ext.define('Traccar.view.edit.Devices', { requires: [ 'Ext.grid.filters.Filters', + 'Traccar.AttributeFormatter', 'Traccar.view.edit.DevicesController' ], @@ -129,18 +130,6 @@ Ext.define('Traccar.view.edit.Devices', { } } }, { - text: Strings.deviceLastUpdate, - dataIndex: 'lastUpdate', - renderer: function (value) { - if (value) { - if (Traccar.app.getPreference('twelveHourFormat', false)) { - return Ext.Date.format(value, Traccar.Style.dateTimeFormat12); - } else { - return Ext.Date.format(value, Traccar.Style.dateTimeFormat24); - } - } - } - }, { text: Strings.deviceStatus, dataIndex: 'status', flex: 1, @@ -159,6 +148,10 @@ Ext.define('Traccar.view.edit.Devices', { } } } + }, { + text: Strings.deviceLastUpdate, + dataIndex: 'lastUpdate', + renderer: Traccar.AttributeFormatter.getFormatter('lastUpdate') }] } }); |