aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Report.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-07 06:07:18 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-07 06:07:18 +1300
commit33783a40ebe4af278bf4f9fa6ca7fa75452c1304 (patch)
tree27b803a30aaf27165e84a236e36f6e91db51d000 /web/app/view/Report.js
parent941d09ba9d24fedeab268e9d109d5be9e8008282 (diff)
downloadtrackermap-web-33783a40ebe4af278bf4f9fa6ca7fa75452c1304.tar.gz
trackermap-web-33783a40ebe4af278bf4f9fa6ca7fa75452c1304.tar.bz2
trackermap-web-33783a40ebe4af278bf4f9fa6ca7fa75452c1304.zip
Add reports to the mobile view
Diffstat (limited to 'web/app/view/Report.js')
-rw-r--r--web/app/view/Report.js67
1 files changed, 38 insertions, 29 deletions
diff --git a/web/app/view/Report.js b/web/app/view/Report.js
index 2854f1ef..f9b79ad6 100644
--- a/web/app/view/Report.js
+++ b/web/app/view/Report.js
@@ -27,37 +27,46 @@ Ext.define('Traccar.view.Report', {
title: Strings.reportTitle,
- tbar: [{
- xtype: 'tbtext',
- html: Strings.sharedType
- }, {
- xtype: 'combobox',
- reference: 'reportTypeField',
- store: 'ReportTypes',
- displayField: 'name',
- valueField: 'key',
- editable: false,
- listeners: {
- change: 'onTypeChange'
- }
- }, '-', {
- text: Strings.reportConfigure,
- handler: 'onConfigureClick'
- }, '-', {
- text: Strings.reportShow,
- reference: 'showButton',
- disabled: true,
- handler: 'onReportClick'
- }, {
- text: Strings.reportExport,
- reference: 'exportButton',
- disabled: true,
- handler: 'onReportClick'
- }, {
- text: Strings.reportClear,
- handler: 'onClearClick'
+ tools: [{
+ type: 'close',
+ tooltip: Strings.sharedHide,
+ handler: 'hideReports'
}],
+ tbar: {
+ scrollable: true,
+ items: [{
+ xtype: 'tbtext',
+ html: Strings.sharedType
+ }, {
+ xtype: 'combobox',
+ reference: 'reportTypeField',
+ store: 'ReportTypes',
+ displayField: 'name',
+ valueField: 'key',
+ editable: false,
+ listeners: {
+ change: 'onTypeChange'
+ }
+ }, '-', {
+ text: Strings.reportConfigure,
+ handler: 'onConfigureClick'
+ }, '-', {
+ text: Strings.reportShow,
+ reference: 'showButton',
+ disabled: true,
+ handler: 'onReportClick'
+ }, {
+ text: Strings.reportExport,
+ reference: 'exportButton',
+ disabled: true,
+ handler: 'onReportClick'
+ }, {
+ text: Strings.reportClear,
+ handler: 'onClearClick'
+ }]
+ },
+
listeners: {
selectionchange: 'onSelectionChange'
}