diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-30 09:19:56 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-30 09:19:56 +0500 |
commit | c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6 (patch) | |
tree | 0acb766a8dadad88d4d60c6f9ca6ed869dbff61e /web/app/view/ReportController.js | |
parent | a09d2276f093504f8ab07bfadf0fbb3854ce5292 (diff) | |
download | trackermap-server-c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6.tar.gz trackermap-server-c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6.tar.bz2 trackermap-server-c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6.zip |
Added time check
Diffstat (limited to 'web/app/view/ReportController.js')
-rw-r--r-- | web/app/view/ReportController.js | 5 |
1 files 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); }, |