aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Statistics.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/Statistics.js')
-rw-r--r--web/app/view/Statistics.js47
1 files changed, 25 insertions, 22 deletions
diff --git a/web/app/view/Statistics.js b/web/app/view/Statistics.js
index d5176a37..55e4d507 100644
--- a/web/app/view/Statistics.js
+++ b/web/app/view/Statistics.js
@@ -25,28 +25,31 @@ Ext.define('Traccar.view.Statistics', {
controller: 'statistics',
store: 'Statistics',
- tbar: [{
- xtype: 'tbtext',
- html: Strings.reportFrom
- }, {
- xtype: 'datefield',
- reference: 'fromDateField',
- startDay: Traccar.Style.weekStartDay,
- format: Traccar.Style.dateFormat,
- value: new Date(new Date().getTime() - 24 * 60 * 60 * 1000)
- }, '-', {
- xtype: 'tbtext',
- html: Strings.reportTo
- }, {
- xtype: 'datefield',
- reference: 'toDateField',
- startDay: Traccar.Style.weekStartDay,
- format: Traccar.Style.dateFormat,
- value: new Date()
- }, '-', {
- text: Strings.reportShow,
- handler: 'onShowClick'
- }],
+ tbar: {
+ scrollable: true,
+ items: [{
+ xtype: 'tbtext',
+ html: Strings.reportFrom
+ }, {
+ xtype: 'datefield',
+ reference: 'fromDateField',
+ startDay: Traccar.Style.weekStartDay,
+ format: Traccar.Style.dateFormat,
+ value: new Date(new Date().getTime() - 24 * 60 * 60 * 1000)
+ }, '-', {
+ xtype: 'tbtext',
+ html: Strings.reportTo
+ }, {
+ xtype: 'datefield',
+ reference: 'toDateField',
+ startDay: Traccar.Style.weekStartDay,
+ format: Traccar.Style.dateFormat,
+ value: new Date()
+ }, '-', {
+ text: Strings.reportShow,
+ handler: 'onShowClick'
+ }]
+ },
columns: {
defaults: {