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 90067c5..d760b85 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 65bee91..bfa7569 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 8fb342b..25b1ca3 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 bf33087..4ee06e8 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 955b2e9..5ede183 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(); |