aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-30 12:25:01 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-30 12:25:01 +0500
commitbcaad78df62ea695757a37f97757b1a34e228ed5 (patch)
tree6a8ced3baaa1a49c6ecf90abeaf0cc2ddf93ea12 /web/app
parent52634dfe47878d3ecfd2612582b354bd39ea4fac (diff)
downloadtrackermap-server-bcaad78df62ea695757a37f97757b1a34e228ed5.tar.gz
trackermap-server-bcaad78df62ea695757a37f97757b1a34e228ed5.tar.bz2
trackermap-server-bcaad78df62ea695757a37f97757b1a34e228ed5.zip
Style fixes
Diffstat (limited to 'web/app')
-rw-r--r--web/app/view/ReportController.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 3fa26fcca..4cc42456c 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.view.ReportController', {
alias: 'controller.report',
requires: [
- 'Traccar.view.ReportConfigDialog'
+ 'Traccar.view.ReportConfigDialog'
],
config: {
@@ -63,7 +63,7 @@ Ext.define('Traccar.view.ReportController', {
updateButtons: function () {
var reportType, disabled, devices, time;
reportType = this.lookupReference('reportTypeField').getValue();
- devices = this.deviceId && this.deviceId.length !== 0 || this.groupId && this.groupId.length !== 0;
+ devices = (this.deviceId && this.deviceId.length !== 0) || (this.groupId && this.groupId.length !== 0);
time = this.fromDate && this.fromTime && this.toDate && this.toTime;
disabled = !reportType || !devices || !time;
this.lookupReference('showButton').setDisabled(disabled);
@@ -84,7 +84,7 @@ Ext.define('Traccar.view.ReportController', {
this.toDate.getFullYear(), this.toDate.getMonth(), this.toDate.getDate(),
this.toTime.getHours(), this.toTime.getMinutes(), this.toTime.getSeconds(), this.toTime.getMilliseconds());
- if (button.reference === "showButton") {
+ if (button.reference === 'showButton') {
store = this.getView().getStore();
store.load({
params: {
@@ -95,7 +95,7 @@ Ext.define('Traccar.view.ReportController', {
to: to.toISOString()
}
});
- } else if (button.reference === "csvButton") {
+ } else if (button.reference === 'csvButton') {
url = this.getView().getStore().getProxy().url;
this.downloadCsv(url, {
deviceId: this.deviceId,
@@ -141,7 +141,7 @@ Ext.define('Traccar.view.ReportController', {
success: function (response) {
var disposition, filename, type, blob, url, downloadUrl, elementA;
disposition = response.getResponseHeader('Content-Disposition');
- filename = disposition.slice(disposition.indexOf("=") + 1, disposition.length);
+ filename = disposition.slice(disposition.indexOf('=') + 1, disposition.length);
type = response.getResponseHeader('Content-Type');
blob = new Blob([response.responseText], {type: type});
if (typeof window.navigator.msSaveBlob !== 'undefined') {
@@ -151,7 +151,7 @@ Ext.define('Traccar.view.ReportController', {
url = window.URL || window.webkitURL;
downloadUrl = url.createObjectURL(blob);
if (filename) {
- elementA = document.createElement("a");
+ elementA = document.createElement('a');
elementA.href = downloadUrl;
elementA.download = filename;
document.body.appendChild(elementA);