aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-07 23:32:25 +1200
committerGitHub <noreply@github.com>2017-09-07 23:32:25 +1200
commit911863f770557f474138f2b113054d5bb294daf8 (patch)
tree28eea451b90f96be8b1355a0ea8c7c4e67485a12 /web/app
parent019fccd1bd4a123fe93228462b33f14889b23394 (diff)
parente4acd577b0f4d83780d8101c3dc5ba177d649604 (diff)
downloadetbsa-traccar-web-911863f770557f474138f2b113054d5bb294daf8.tar.gz
etbsa-traccar-web-911863f770557f474138f2b113054d5bb294daf8.tar.bz2
etbsa-traccar-web-911863f770557f474138f2b113054d5bb294daf8.zip
Merge pull request #574 from Abyss777/attributes_types
Save attributes with correct types
Diffstat (limited to 'web/app')
-rw-r--r--web/app/model/Attribute.js3
-rw-r--r--web/app/view/Statistics.js47
-rw-r--r--web/app/view/dialog/Server.js15
-rw-r--r--web/app/view/dialog/User.js3
-rw-r--r--web/app/view/edit/Users.js1
5 files changed, 33 insertions, 36 deletions
diff --git a/web/app/model/Attribute.js b/web/app/model/Attribute.js
index a4aba97..b1586a7 100644
--- a/web/app/model/Attribute.js
+++ b/web/app/model/Attribute.js
@@ -25,8 +25,7 @@ Ext.define('Traccar.model.Attribute', {
name: 'name',
type: 'string'
}, {
- name: 'value',
- type: 'string'
+ name: 'value'
}, {
name: 'attribute',
type: 'string'
diff --git a/web/app/view/Statistics.js b/web/app/view/Statistics.js
index d5176a3..55e4d50 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: {
diff --git a/web/app/view/dialog/Server.js b/web/app/view/dialog/Server.js
index c7b9457..b6343f3 100644
--- a/web/app/view/dialog/Server.js
+++ b/web/app/view/dialog/Server.js
@@ -68,15 +68,13 @@ Ext.define('Traccar.view.dialog.Server', {
inputValue: true,
uncheckedValue: false,
name: 'twelveHourFormat',
- fieldLabel: Strings.settingsTwelveHourFormat,
- allowBlank: false
+ fieldLabel: Strings.settingsTwelveHourFormat
}, {
xtype: 'checkboxfield',
inputValue: true,
uncheckedValue: false,
name: 'forceSettings',
- fieldLabel: Strings.serverForceSettings,
- allowBlank: false
+ fieldLabel: Strings.serverForceSettings
}, {
xtype: 'combobox',
name: 'coordinateFormat',
@@ -96,22 +94,19 @@ Ext.define('Traccar.view.dialog.Server', {
inputValue: true,
uncheckedValue: false,
name: 'registration',
- fieldLabel: Strings.serverRegistration,
- allowBlank: false
+ fieldLabel: Strings.serverRegistration
}, {
xtype: 'checkboxfield',
inputValue: true,
uncheckedValue: false,
name: 'readonly',
- fieldLabel: Strings.serverReadonly,
- allowBlank: false
+ fieldLabel: Strings.serverReadonly
}, {
xtype: 'checkboxfield',
inputValue: true,
uncheckedValue: false,
name: 'deviceReadonly',
- fieldLabel: Strings.userDeviceReadonly,
- allowBlank: false
+ fieldLabel: Strings.userDeviceReadonly
}]
}]
},
diff --git a/web/app/view/dialog/User.js b/web/app/view/dialog/User.js
index f646d49..43990a5 100644
--- a/web/app/view/dialog/User.js
+++ b/web/app/view/dialog/User.js
@@ -85,8 +85,7 @@ Ext.define('Traccar.view.dialog.User', {
inputValue: true,
uncheckedValue: false,
name: 'twelveHourFormat',
- fieldLabel: Strings.settingsTwelveHourFormat,
- allowBlank: false
+ fieldLabel: Strings.settingsTwelveHourFormat
}, {
xtype: 'combobox',
name: 'coordinateFormat',
diff --git a/web/app/view/edit/Users.js b/web/app/view/edit/Users.js
index 5c1c8ef..bb121be 100644
--- a/web/app/view/edit/Users.js
+++ b/web/app/view/edit/Users.js
@@ -33,6 +33,7 @@ Ext.define('Traccar.view.edit.Users', {
tbar: {
xtype: 'editToolbar',
+ scrollable: true,
items: [{
disabled: true,
handler: 'onGeofencesClick',