aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportConfigController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-30 11:35:41 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-30 11:35:41 +0500
commit52634dfe47878d3ecfd2612582b354bd39ea4fac (patch)
tree863162cabb037bd7c1aa541b51bbe3a9a4e2bbc2 /web/app/view/ReportConfigController.js
parentc5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6 (diff)
downloadtraccar-server-52634dfe47878d3ecfd2612582b354bd39ea4fac.tar.gz
traccar-server-52634dfe47878d3ecfd2612582b354bd39ea4fac.tar.bz2
traccar-server-52634dfe47878d3ecfd2612582b354bd39ea4fac.zip
Add alias allEvents for "%"
Diffstat (limited to 'web/app/view/ReportConfigController.js')
-rw-r--r--web/app/view/ReportConfigController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/ReportConfigController.js b/web/app/view/ReportConfigController.js
index d98690e95..5bd6ae7ef 100644
--- a/web/app/view/ReportConfigController.js
+++ b/web/app/view/ReportConfigController.js
@@ -44,10 +44,10 @@ Ext.define('Traccar.view.ReportConfigController', {
this.getView().callingPanel.deviceId = this.lookupReference('deviceField').getValue();
this.getView().callingPanel.groupId = this.lookupReference('groupField').getValue();
eventType = this.lookupReference('eventTypeField').getValue();
- if (eventType.indexOf('%') > -1) {
- eventType = ['%'];
+ if (eventType.indexOf(Ext.getStore('ReportEventTypes').allEvents) > -1) {
+ eventType = [Ext.getStore('ReportEventTypes').allEvents];
} else if (eventType.length === this.lookupReference('eventTypeField').getStore().getCount() - 1) {
- eventType = ['%'];
+ eventType = [Ext.getStore('ReportEventTypes').allEvents];
}
this.getView().callingPanel.eventType = eventType;
this.getView().callingPanel.fromDate = this.lookupReference('fromDateField').getValue();