diff options
author | Gabor Somogyi <Gabor_Somogyi@epam.com> | 2016-05-04 12:49:23 +0200 |
---|---|---|
committer | Gabor Somogyi <Gabor_Somogyi@epam.com> | 2016-05-04 12:49:23 +0200 |
commit | 1cc86f7df5704aa19d1af643c5fbf852a301858b (patch) | |
tree | 28ffae07132f57c2cdd7fd065b2315f4fb7cd7fd /web/app/store/SupportedCommands.js | |
parent | 1a605980b1a120614ccaeb56faac37b05a81a4e9 (diff) | |
download | trackermap-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.tar.gz trackermap-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.tar.bz2 trackermap-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.zip |
SupportedCommand model removed
Diffstat (limited to 'web/app/store/SupportedCommands.js')
-rw-r--r-- | web/app/store/SupportedCommands.js | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/web/app/store/SupportedCommands.js b/web/app/store/SupportedCommands.js index 64e4af88d..612909180 100644 --- a/web/app/store/SupportedCommands.js +++ b/web/app/store/SupportedCommands.js @@ -16,25 +16,15 @@ Ext.define('Traccar.store.SupportedCommands', { extend: 'Ext.data.Store', - model: 'Traccar.model.SupportedCommand', + fields: [ + { type: 'string', name: 'key'} + ], listeners: { 'beforeload' : function(store, eOpts) { var proxy; proxy = store.getProxy(); proxy.setUrl('/api/supportedcommands?deviceId' + proxy.extraParams.deviceId); - }, - 'load' : function(store, records, successful, eOpts) { - if (typeof records !== "undefined") { - records.forEach(function(entry) { - if (typeof entry !== "undefined" && typeof entry.data.name !== "undefined") { - var translatedName = Strings[entry.data.name]; - if (typeof translatedName !== "undefined") { - entry.data.name = translatedName; - } - } - }, this); - } } }, |