From 546237415feccc2cc4974103241a12e4aff3ea06 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 8 Oct 2016 15:38:42 +1300 Subject: Make some comboboxes non editable --- web/app/view/CommandDialog.js | 1 + web/app/view/GeofenceMap.js | 1 + web/app/view/Login.js | 1 + web/app/view/Report.js | 2 +- web/app/view/ServerDialog.js | 9 ++++++--- 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', -- cgit v1.2.3