diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 15:38:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 15:38:42 +1300 |
commit | 546237415feccc2cc4974103241a12e4aff3ea06 (patch) | |
tree | efa3ba6d9b20be46e1e7b9bdf871aed9e4d2f223 | |
parent | 4b5f8366b4f5a41591dd1b4627a97c9211c02fb8 (diff) | |
download | trackermap-web-546237415feccc2cc4974103241a12e4aff3ea06.tar.gz trackermap-web-546237415feccc2cc4974103241a12e4aff3ea06.tar.bz2 trackermap-web-546237415feccc2cc4974103241a12e4aff3ea06.zip |
Make some comboboxes non editable
-rw-r--r-- | web/app/view/CommandDialog.js | 1 | ||||
-rw-r--r-- | web/app/view/GeofenceMap.js | 1 | ||||
-rw-r--r-- | web/app/view/Login.js | 1 | ||||
-rw-r--r-- | web/app/view/Report.js | 2 | ||||
-rw-r--r-- | web/app/view/ServerDialog.js | 9 | ||||
-rw-r--r-- | web/app/view/UserDialog.js | 9 |
6 files changed, 16 insertions, 7 deletions
diff --git a/web/app/view/CommandDialog.js b/web/app/view/CommandDialog.js index 9532c531..cf140623 100644 --- a/web/app/view/CommandDialog.js +++ b/web/app/view/CommandDialog.js @@ -34,6 +34,7 @@ Ext.define('Traccar.view.CommandDialog', { store: 'CommandTypes', displayField: 'name', valueField: 'type', + editable: false, listeners: { select: 'onSelect' } diff --git a/web/app/view/GeofenceMap.js b/web/app/view/GeofenceMap.js index 52287fd6..16b0721c 100644 --- a/web/app/view/GeofenceMap.js +++ b/web/app/view/GeofenceMap.js @@ -33,6 +33,7 @@ Ext.define('Traccar.view.GeofenceMap', { store: 'GeofenceTypes', valueField: 'key', displayField: 'name', + editable: false, listeners: { select: 'onTypeSelect' } diff --git a/web/app/view/Login.js b/web/app/view/Login.js index 3e8f32ff..d4ab1403 100644 --- a/web/app/view/Login.js +++ b/web/app/view/Login.js @@ -47,6 +47,7 @@ Ext.define('Traccar.view.Login', { store: 'Languages', displayField: 'name', valueField: 'code', + editable: false, submitValue: false, listeners: { select: 'onSelectLanguage' diff --git a/web/app/view/Report.js b/web/app/view/Report.js index 933ead4b..18debc63 100644 --- a/web/app/view/Report.js +++ b/web/app/view/Report.js @@ -36,7 +36,7 @@ Ext.define('Traccar.view.Report', { store: 'ReportTypes', displayField: 'name', valueField: 'key', - typeAhead: true, + editable: false, listeners: { change: 'onTypeChange' } diff --git a/web/app/view/ServerDialog.js b/web/app/view/ServerDialog.js index 659d171d..a08851ca 100644 --- a/web/app/view/ServerDialog.js +++ b/web/app/view/ServerDialog.js @@ -43,7 +43,8 @@ Ext.define('Traccar.view.ServerDialog', { fieldLabel: Strings.mapLayer, store: 'MapTypes', displayField: 'name', - valueField: 'key' + valueField: 'key', + editable: false }, { xtype: 'textfield', name: 'bingKey', @@ -58,14 +59,16 @@ Ext.define('Traccar.view.ServerDialog', { fieldLabel: Strings.sharedDistance, store: 'DistanceUnits', displayField: 'name', - valueField: 'key' + valueField: 'key', + editable: false }, { xtype: 'combobox', name: 'speedUnit', fieldLabel: Strings.settingsSpeedUnit, store: 'SpeedUnits', displayField: 'name', - valueField: 'key' + valueField: 'key', + editable: false }, { xtype: 'numberfield', reference: 'latitude', diff --git a/web/app/view/UserDialog.js b/web/app/view/UserDialog.js index 43bf0671..92e3c5b8 100644 --- a/web/app/view/UserDialog.js +++ b/web/app/view/UserDialog.js @@ -55,21 +55,24 @@ Ext.define('Traccar.view.UserDialog', { fieldLabel: Strings.mapLayer, store: 'MapTypes', displayField: 'name', - valueField: 'key' + valueField: 'key', + editable: false }, { xtype: 'combobox', name: 'distanceUnit', fieldLabel: Strings.sharedDistance, store: 'DistanceUnits', displayField: 'name', - valueField: 'key' + valueField: 'key', + editable: false }, { xtype: 'combobox', name: 'speedUnit', fieldLabel: Strings.settingsSpeedUnit, store: 'SpeedUnits', displayField: 'name', - valueField: 'key' + valueField: 'key', + editable: false }, { xtype: 'numberfield', reference: 'latitude', |