new missions + try to debug failing mission handling
This commit is contained in:
@@ -1452,16 +1452,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
window.console.log("Clicked Vehicles: %s %s", window.name, String(self.MissionID), $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||
let vhcalled = window.$('#vehicle_show_table_all input[type="checkbox"]:checked');
|
||||
window.console.log("Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled);
|
||||
// window.console.log("WILL KLICK SEND", self.MissionID, window.name)
|
||||
|
||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
tellParent(`console.log('ok:${window.name}:${self.MissionID}');`);
|
||||
if ($('#vehicle_show_table_all input[type="checkbox"]:checked').length == 0) {
|
||||
if (vhcalled.length == 0) {
|
||||
window.console.log('nocars selected...', vhcalled.length);
|
||||
if (window.name == 'adis-krankentransporte') {
|
||||
window.console.log('nocars selected... select KTW');
|
||||
$('#aao_2753841').click();
|
||||
window.$('#mission_alarm_btn').click();
|
||||
} else {
|
||||
window.console.log('nocars selected... start new run');
|
||||
tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user