diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-30 14:31:21 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-30 14:31:21 +0500 |
commit | 72dd6fa3f04a12df346ef3996878092cde407681 (patch) | |
tree | 93f72a32f389c9629ce54cad69ef8d458abae215 /web/app/store | |
parent | bcaad78df62ea695757a37f97757b1a34e228ed5 (diff) | |
download | trackermap-server-72dd6fa3f04a12df346ef3996878092cde407681.tar.gz trackermap-server-72dd6fa3f04a12df346ef3996878092cde407681.tar.bz2 trackermap-server-72dd6fa3f04a12df346ef3996878092cde407681.zip |
Used static variable and move creation allEvents item from config to ReportConfigController.init()
Diffstat (limited to 'web/app/store')
-rw-r--r-- | web/app/store/ReportEventTypes.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/web/app/store/ReportEventTypes.js b/web/app/store/ReportEventTypes.js index c5840305a..27bc1fd5d 100644 --- a/web/app/store/ReportEventTypes.js +++ b/web/app/store/ReportEventTypes.js @@ -19,10 +19,7 @@ Ext.define('Traccar.store.ReportEventTypes', { extend: 'Ext.data.Store', fields: ['type', 'name'], - allEvents: '%', - - data: [{ - type: '%', - name: Strings.eventAll - }] + statics: { + allEvents: '%' + } }); |