poapva9
This commit is contained in:
@@ -14,21 +14,24 @@ $(document).ready(function () {
|
||||
console.log("CurrentTime", CurrentTime);
|
||||
if (MissionType !== null) {
|
||||
if (includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") || $('#vehicle_show_table_all input[type="checkbox"]:checked').size() > 0) {
|
||||
console.log("SEND")
|
||||
return ADis_MissionUpdateDone(MissionID); // update Mission here as updated or full
|
||||
}
|
||||
setTimeout(function () {
|
||||
if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("WILL SEND?")
|
||||
ADis_CheckMissionAutomatic();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
ADis_WorkVerbandMission();
|
||||
}
|
||||
}, 1000);
|
||||
}, 250);
|
||||
} else {
|
||||
if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
console.log("DONE!")
|
||||
return ADis_MissionDelete(MissionID); // delete Mission here as completed
|
||||
}
|
||||
}
|
||||
}, 250);
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
// - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
@@ -166,14 +169,16 @@ function AD_StartAlarmProcess() {
|
||||
last_check: CurrentTime,
|
||||
next_check: CurrentTime + 60
|
||||
};
|
||||
tellParent(`
|
||||
console.log('ok:${window.name}:${MissionID}');
|
||||
ADis_MissionUpdateDone('${window.name}', '${MissionID}');
|
||||
tellParent(`setTimeout(function(){
|
||||
console.log('ok:${window.name}:${MissionID}');
|
||||
ADis_MissionUpdateDone('${window.name}', '${MissionID}');
|
||||
},1000);
|
||||
`);
|
||||
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(() => {
|
||||
$('#mission-form > div.pull-right > div:nth-child(1) > input').click();
|
||||
$('#mission_alarm_btn').click();
|
||||
}, 250);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user