aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportConfigController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-18 10:22:17 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-18 10:22:17 +0500
commit61590f09ba735a532ff337ea841c8f4d27bd81e3 (patch)
tree0b88aa56e842ba152a35158b6caabe982a2c9563 /web/app/view/ReportConfigController.js
parentfd2207b15d98d8fdef306f3b94924a759c80a3d9 (diff)
downloadtrackermap-web-61590f09ba735a532ff337ea841c8f4d27bd81e3.tar.gz
trackermap-web-61590f09ba735a532ff337ea841c8f4d27bd81e3.tar.bz2
trackermap-web-61590f09ba735a532ff337ea841c8f4d27bd81e3.zip
Initialize stores on application load
Diffstat (limited to 'web/app/view/ReportConfigController.js')
-rw-r--r--web/app/view/ReportConfigController.js22
1 files changed, 0 insertions, 22 deletions
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();