From c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 30 Aug 2016 09:19:56 +0500 Subject: Added time check --- web/app/view/ReportController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js index 6f998396c..8f2b9b871 100644 --- a/web/app/view/ReportController.js +++ b/web/app/view/ReportController.js @@ -61,10 +61,11 @@ Ext.define('Traccar.view.ReportController', { }, updateButtons: function () { - var reportType, disabled, devices; + var reportType, disabled, devices, time; reportType = this.lookupReference('reportTypeField').getValue(); devices = this.deviceId && this.deviceId.length !== 0 || this.groupId && this.groupId.length !== 0; - disabled = !reportType || !devices; + time = this.fromDate && this.fromTime && this.toDate && this.toTime; + disabled = !reportType || !devices || !time; this.lookupReference('showButton').setDisabled(disabled); this.lookupReference('csvButton').setDisabled(disabled); }, -- cgit v1.2.3