aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/EventsController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 18:52:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 18:52:03 +1200
commitb4e2d507666121c8219894fb108be43de22e48d0 (patch)
tree7ebff718182d2b06413a6219f0b417035e89601d /web/app/view/EventsController.js
parent8a48bca94e9d76bdae60453ca0231543e66c378e (diff)
downloadtrackermap-web-b4e2d507666121c8219894fb108be43de22e48d0.tar.gz
trackermap-web-b4e2d507666121c8219894fb108be43de22e48d0.tar.bz2
trackermap-web-b4e2d507666121c8219894fb108be43de22e48d0.zip
Hide event marker if no position
Diffstat (limited to 'web/app/view/EventsController.js')
-rw-r--r--web/app/view/EventsController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/EventsController.js b/web/app/view/EventsController.js
index 16b3c779..d275c2c2 100644
--- a/web/app/view/EventsController.js
+++ b/web/app/view/EventsController.js
@@ -88,9 +88,9 @@ Ext.define('Traccar.view.EventsController', {
event = selected.length > 0 ? selected[0] : null;
if (event && event.get('positionId')) {
position = Ext.getStore('EventPositions').getById(event.get('positionId'));
- if (position) {
- this.fireEvent('selectevent', position);
- }
+ this.fireEvent('selectevent', position);
+ } else {
+ this.fireEvent('selectevent');
}
this.lookupReference('removeEventButton').setDisabled(!event);
}