diff options
author | Abyss777 <abyss@fox5.ru> | 2016-12-02 09:29:08 +0700 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-12-02 09:29:08 +0700 |
commit | ea09b2e85e014d438084a454fae7c0cce57d9773 (patch) | |
tree | a19c942034f2404a4e44bd7655b46f769c0691a5 /web/app/view/ReportController.js | |
parent | 1aae9dee5ecd797c3c2d2a6e985f605d783620ee (diff) | |
download | trackermap-web-ea09b2e85e014d438084a454fae7c0cce57d9773.tar.gz trackermap-web-ea09b2e85e014d438084a454fae7c0cce57d9773.tar.bz2 trackermap-web-ea09b2e85e014d438084a454fae7c0cce57d9773.zip |
- Remove single event
- Redo ol.extent calculation with less compares
- Uncomment url manipulation
Diffstat (limited to 'web/app/view/ReportController.js')
-rw-r--r-- | web/app/view/ReportController.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js index 2ad2bdda..1f3f3a2a 100644 --- a/web/app/view/ReportController.js +++ b/web/app/view/ReportController.js @@ -214,8 +214,7 @@ Ext.define('Traccar.view.ReportController', { callback: function (records, operation, success) { if (success) { Ext.getStore('ReportRoute').add(records); - if (this.singleEvent && records.length > 0) { - this.singleEvent = false; + if (records.length === 1) { this.fireEvent('selectreport', records[0], false); } } @@ -225,7 +224,6 @@ Ext.define('Traccar.view.ReportController', { }, showSingleEvent: function (eventId) { - this.singleEvent = true; this.lookupReference('reportTypeField').setValue('events'); Ext.getStore('Events').load({ id: eventId, |