aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-30 09:19:56 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-30 09:19:56 +0500
commitc5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6 (patch)
tree0acb766a8dadad88d4d60c6f9ca6ed869dbff61e /web
parenta09d2276f093504f8ab07bfadf0fbb3854ce5292 (diff)
downloadtrackermap-server-c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6.tar.gz
trackermap-server-c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6.tar.bz2
trackermap-server-c5aa95ad2aa5a5949a61aa139e05a1c807bb2ba6.zip
Added time check
Diffstat (limited to 'web')
-rw-r--r--web/app/view/ReportController.js5
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);
},