From 72dd6fa3f04a12df346ef3996878092cde407681 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 30 Aug 2016 14:31:21 +0500 Subject: Used static variable and move creation allEvents item from config to ReportConfigController.init() --- web/app/store/ReportEventTypes.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'web/app/store') 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: '%' + } }); -- cgit v1.2.3