v2 update 20aufio
This commit is contained in:
@@ -24,6 +24,7 @@ class AutomaticDispose {
|
||||
self.MissionID = null
|
||||
self.MyRunner = null
|
||||
self.MyRunnerSettings = null
|
||||
self.OweSecure = false
|
||||
|
||||
self._ADisVehiclesNeed = {}
|
||||
self.MissionConfig = {}
|
||||
@@ -1273,6 +1274,9 @@ class AutomaticDispose {
|
||||
}).then((Missions) => {
|
||||
if (Missions.length > 0) {
|
||||
var Mission = Missions[0];
|
||||
if (self.MyRunner == 'os'){
|
||||
self.OweSecure = true;
|
||||
}
|
||||
self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type);
|
||||
}
|
||||
});
|
||||
@@ -1329,17 +1333,23 @@ class AutomaticDispose {
|
||||
.then(async () => {
|
||||
return await self.ProcessWaterRescue()
|
||||
}).then(() => {
|
||||
console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||
if (['adis-ownmissions', 'adis-krankentransporte', 'adis-verbandmission'].indexOf(window.name) !== -1) {
|
||||
console.log("WILL KLICK SEND")
|
||||
setTimeout(() => {
|
||||
|
||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
||||
window.$('#mission_alarm_btn').click();
|
||||
});
|
||||
}, 250);
|
||||
if (self.OweSecure) {
|
||||
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').size() > 0) {
|
||||
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
|
||||
}
|
||||
}
|
||||
|
||||
console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||
console.log("WILL KLICK SEND")
|
||||
setTimeout(() => {
|
||||
|
||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
||||
window.$('#mission_alarm_btn').click();
|
||||
});
|
||||
}, 250);
|
||||
|
||||
})
|
||||
}, 500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user