aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportController.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/ReportController.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/ReportController.js')
-rw-r--r--web/app/view/ReportController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 8f2b9b871..3fa26fcca 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -43,7 +43,7 @@ Ext.define('Traccar.view.ReportController', {
if (this.eventType !== undefined) {
dialog.lookupReference('eventTypeField').setValue(this.eventType);
} else {
- dialog.lookupReference('eventTypeField').setValue(['%']);
+ dialog.lookupReference('eventTypeField').setValue([Ext.getStore('ReportEventTypes').allEvents]);
}
if (this.fromDate !== undefined) {
dialog.lookupReference('fromDateField').setValue(this.fromDate);
@@ -143,7 +143,7 @@ Ext.define('Traccar.view.ReportController', {
disposition = response.getResponseHeader('Content-Disposition');
filename = disposition.slice(disposition.indexOf("=") + 1, disposition.length);
type = response.getResponseHeader('Content-Type');
- blob = new Blob([response.responseText], { type: type });
+ blob = new Blob([response.responseText], {type: type});
if (typeof window.navigator.msSaveBlob !== 'undefined') {
// IE workaround
window.navigator.msSaveBlob(blob, filename);