diff options
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/AttributeAliases.js | 2 | ||||
-rw-r--r-- | web/app/view/CalendarsController.js | 5 | ||||
-rw-r--r-- | web/app/view/DeviceDistanceDialog.js | 1 | ||||
-rw-r--r-- | web/app/view/GeofencesController.js | 5 | ||||
-rw-r--r-- | web/app/view/ReportConfigController.js | 22 |
5 files changed, 3 insertions, 32 deletions
diff --git a/web/app/view/AttributeAliases.js b/web/app/view/AttributeAliases.js index 90067c53..d760b85b 100644 --- a/web/app/view/AttributeAliases.js +++ b/web/app/view/AttributeAliases.js @@ -38,7 +38,7 @@ Ext.define('Traccar.view.AttributeAliases', { store: 'Devices', displayField: 'name', valueField: 'id', - typeAhead: true, + editable: false, listeners: { change: 'onDeviceChange' } diff --git a/web/app/view/CalendarsController.js b/web/app/view/CalendarsController.js index 65bee91d..bfa7569d 100644 --- a/web/app/view/CalendarsController.js +++ b/web/app/view/CalendarsController.js @@ -27,9 +27,6 @@ Ext.define('Traccar.view.CalendarsController', { objectModel: 'Traccar.model.Calendar', objectDialog: 'Traccar.view.CalendarDialog', - removeTitle: Strings.sharedCalendar, + removeTitle: Strings.sharedCalendar - init: function () { - Ext.getStore('Calendars').load(); - } }); diff --git a/web/app/view/DeviceDistanceDialog.js b/web/app/view/DeviceDistanceDialog.js index 8fb342be..25b1ca32 100644 --- a/web/app/view/DeviceDistanceDialog.js +++ b/web/app/view/DeviceDistanceDialog.js @@ -33,6 +33,7 @@ Ext.define('Traccar.view.DeviceDistanceDialog', { store: 'AllDevices', displayField: 'name', valueField: 'id', + editable: false, listeners: { change: 'onDeviceChange' } diff --git a/web/app/view/GeofencesController.js b/web/app/view/GeofencesController.js index bf330872..4ee06e81 100644 --- a/web/app/view/GeofencesController.js +++ b/web/app/view/GeofencesController.js @@ -24,11 +24,6 @@ Ext.define('Traccar.view.GeofencesController', { 'Traccar.model.Geofence' ], - init: function () { - Ext.getStore('Geofences').load(); - Ext.getStore('Calendars').load(); - }, - objectModel: 'Traccar.model.Geofence', objectDialog: 'Traccar.view.GeofenceDialog', removeTitle: Strings.sharedGeofence diff --git a/web/app/view/ReportConfigController.js b/web/app/view/ReportConfigController.js index 955b2e96..5ede1830 100644 --- a/web/app/view/ReportConfigController.js +++ b/web/app/view/ReportConfigController.js @@ -25,28 +25,6 @@ Ext.define('Traccar.view.ReportConfigController', { 'Traccar.store.AllNotifications' ], - init: function () { - var store = this.lookupReference('eventTypeField').getStore(); - if (store.getCount() === 0) { - store.add({ - type: Traccar.store.ReportEventTypes.allEvents, - name: Strings.eventAll - }); - Ext.create('Traccar.store.AllNotifications').load({ - scope: this, - callback: function (records, operation, success) { - var i, value; - if (success) { - for (i = 0; i < records.length; i++) { - value = records[i].get('type'); - store.add({type: value, name: Traccar.app.getEventString(value)}); - } - } - } - }); - } - }, - onSaveClick: function (button) { var eventType; this.getView().callingPanel.deviceId = this.lookupReference('deviceField').getValue(); |