add alert on suspect support angle for non-belt. correct dwell time calcs

This commit is contained in:
Stewart Allen 2021-11-29 19:39:40 -05:00
commit 3c7dea3626
3 changed files with 18 additions and 5 deletions

View file

@ -328,7 +328,7 @@
split: groupSplit,
},
hide: {
alert: function(rec) { alert2cancel(rec) },
alert: function(rec,recs) { alert2cancel(rec,recs) },
import: function() { },
slider: hideSlider
},
@ -602,7 +602,13 @@
return rec;
}
function alert2cancel(rec) {
function alert2cancel(rec,recs) {
if (Array.isArray(recs)) {
for (let r of recs) {
alert2cancel(r);
}
return;
}
if (feature.alert_event) {
API.event.emit('alert.cancel', rec);
return;