aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-09-06 16:09:11 +0500
committerAbyss777 <abyss@fox5.ru>2016-09-06 16:09:11 +0500
commit68d284f3023d49c0c3ae9879c5c75c9b152eda3b (patch)
tree36be903658d4fad3f246fcb6727fd294067d5c00 /web/app
parent97e80ec49fddec3d56880bae47bd070474fa8fa3 (diff)
downloadtrackermap-server-68d284f3023d49c0c3ae9879c5c75c9b152eda3b.tar.gz
trackermap-server-68d284f3023d49c0c3ae9879c5c75c9b152eda3b.tar.bz2
trackermap-server-68d284f3023d49c0c3ae9879c5c75c9b152eda3b.zip
Rename other events to lowercase
Diffstat (limited to 'web/app')
-rw-r--r--web/app/view/BaseMap.js2
-rw-r--r--web/app/view/DevicesController.js8
-rw-r--r--web/app/view/GeofenceDialogController.js2
-rw-r--r--web/app/view/GeofenceMapController.js2
-rw-r--r--web/app/view/MapController.js10
-rw-r--r--web/app/view/ReportController.js6
6 files changed, 15 insertions, 15 deletions
diff --git a/web/app/view/BaseMap.js b/web/app/view/BaseMap.js
index 77646cbef..62b2c5735 100644
--- a/web/app/view/BaseMap.js
+++ b/web/app/view/BaseMap.js
@@ -100,7 +100,7 @@ Ext.define('Traccar.view.BaseMap', {
this.map.on('click', function (e) {
this.map.forEachFeatureAtPixel(e.pixel, function (feature, layer) {
- this.fireEvent('selectFeature', feature);
+ this.fireEvent('selectfeature', feature);
}, this);
}, this);
},
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index 6dcc45448..68dd16025 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -31,8 +31,8 @@ Ext.define('Traccar.view.DevicesController', {
listen: {
controller: {
'*': {
- selectDevice: 'selectDevice',
- selectReport: 'selectReport'
+ selectdevice: 'selectDevice',
+ selectreport: 'selectReport'
}
},
store: {
@@ -121,7 +121,7 @@ Ext.define('Traccar.view.DevicesController', {
var device;
if (pressed) {
device = this.getView().getSelectionModel().getSelection()[0];
- this.fireEvent('selectDevice', device, true);
+ this.fireEvent('selectdevice', device, true);
}
},
@@ -136,7 +136,7 @@ Ext.define('Traccar.view.DevicesController', {
onSelectionChange: function (selected) {
this.updateButtons(selected);
if (selected.getCount() > 0) {
- this.fireEvent('selectDevice', selected.getLastSelected(), true);
+ this.fireEvent('selectdevice', selected.getLastSelected(), true);
}
},
diff --git a/web/app/view/GeofenceDialogController.js b/web/app/view/GeofenceDialogController.js
index b04935b9c..5638db362 100644
--- a/web/app/view/GeofenceDialogController.js
+++ b/web/app/view/GeofenceDialogController.js
@@ -26,7 +26,7 @@ Ext.define('Traccar.view.GeofenceDialogController', {
listen: {
controller: {
'*': {
- saveArea: 'saveArea'
+ savearea: 'saveArea'
}
}
}
diff --git a/web/app/view/GeofenceMapController.js b/web/app/view/GeofenceMapController.js
index d643c89e4..c508127d7 100644
--- a/web/app/view/GeofenceMapController.js
+++ b/web/app/view/GeofenceMapController.js
@@ -27,7 +27,7 @@ Ext.define('Traccar.view.GeofenceMapController', {
if (this.getView().getFeatures().getLength() > 0) {
geometry = this.getView().getFeatures().pop().getGeometry();
projection = this.getView().getMapView().getProjection();
- this.fireEvent('saveArea', Traccar.GeofenceConverter.geometryToWkt(projection, geometry));
+ this.fireEvent('savearea', Traccar.GeofenceConverter.geometryToWkt(projection, geometry));
button.up('window').close();
}
},
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index c0ac2c534..3b0db6b07 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -22,8 +22,8 @@ Ext.define('Traccar.view.MapController', {
listen: {
controller: {
'*': {
- selectDevice: 'selectDevice',
- selectReport: 'selectReport',
+ selectdevice: 'selectDevice',
+ selectreport: 'selectReport',
mapstaterequest: 'getMapState'
}
},
@@ -43,7 +43,7 @@ Ext.define('Traccar.view.MapController', {
},
component: {
'#': {
- selectFeature: 'selectFeature'
+ selectfeature: 'selectFeature'
}
}
}
@@ -300,9 +300,9 @@ Ext.define('Traccar.view.MapController', {
var record = feature.get('record');
if (record) {
if (record instanceof Traccar.model.Device) {
- this.fireEvent('selectDevice', record, false);
+ this.fireEvent('selectdevice', record, false);
} else {
- this.fireEvent('selectReport', record, false);
+ this.fireEvent('selectreport', record, false);
}
}
},
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 3a3345d83..a6253952a 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -29,8 +29,8 @@ Ext.define('Traccar.view.ReportController', {
listen: {
controller: {
'*': {
- selectDevice: 'selectDevice',
- selectReport: 'selectReport'
+ selectdevice: 'selectDevice',
+ selectreport: 'selectReport'
}
}
}
@@ -116,7 +116,7 @@ Ext.define('Traccar.view.ReportController', {
onSelectionChange: function (selected) {
if (selected.getCount() > 0) {
- this.fireEvent('selectReport', selected.getLastSelected(), true);
+ this.fireEvent('selectreport', selected.getLastSelected(), true);
}
},