aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/report/Report.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-20 16:57:21 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-20 16:57:21 +1200
commit6dfee3947ef96e1092b668ecfc7c58037355ffb8 (patch)
treed29ab479106c97b6443bc9c6a439f315bafa18b0 /web/app/view/report/Report.js
parenteb586ea7e074c87444663aa71e9da6f538429ae5 (diff)
downloadtrackermap-server-6dfee3947ef96e1092b668ecfc7c58037355ffb8.tar.gz
trackermap-server-6dfee3947ef96e1092b668ecfc7c58037355ffb8.tar.bz2
trackermap-server-6dfee3947ef96e1092b668ecfc7c58037355ffb8.zip
Implement position report loading
Diffstat (limited to 'web/app/view/report/Report.js')
-rw-r--r--web/app/view/report/Report.js23
1 files changed, 17 insertions, 6 deletions
diff --git a/web/app/view/report/Report.js b/web/app/view/report/Report.js
index d39513873..a8b191ef1 100644
--- a/web/app/view/report/Report.js
+++ b/web/app/view/report/Report.js
@@ -32,6 +32,7 @@ Ext.define('Traccar.view.report.Report', {
html: strings.report_device
}, {
xtype: 'combobox',
+ reference: 'deviceField',
store: 'Devices',
valueField: 'id',
displayField: 'name',
@@ -41,22 +42,32 @@ Ext.define('Traccar.view.report.Report', {
xtype: 'tbtext',
html: strings.report_from
}, {
- xtype: 'datefield'
+ xtype: 'datefield',
+ reference: 'fromDateField',
+ value: new Date()
}, {
xtype: 'timefield',
- maxWidth: styles.report_time
+ reference: 'fromTimeField',
+ maxWidth: styles.report_time,
+ value: new Date()
}, '-', {
xtype: 'tbtext',
html: strings.report_to
}, {
- xtype: 'datefield'
+ xtype: 'datefield',
+ reference: 'toDateField',
+ value: new Date()
}, {
xtype: 'timefield',
- maxWidth: styles.report_time
+ reference: 'toTimeField',
+ maxWidth: styles.report_time,
+ value: new Date()
}, '-', {
- text: strings.report_show
+ text: strings.report_show,
+ handler: 'onShowClick'
}, {
- text: strings.report_clear
+ text: strings.report_clear,
+ handler: 'onClearClick'
}],
columns: [