mcoxp
This commit is contained in:
@@ -13,18 +13,19 @@ $(document).ready(function () {
|
||||
console.log("MissionType", MissionType);
|
||||
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")
|
||||
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
|
||||
} else {
|
||||
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();
|
||||
}
|
||||
}, 250);
|
||||
}
|
||||
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();
|
||||
}
|
||||
}, 250);
|
||||
} else {
|
||||
if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
console.log("DONE!")
|
||||
@@ -135,6 +136,7 @@ function AD_GetMissionConfiguration(MissionType) {
|
||||
}).then((availableMission) => {
|
||||
if (availableMission != undefined && availableMission.jsondata) {
|
||||
MissionConfig = availableMission.jsondata;
|
||||
console.log('MissionConfig: ', JSON.stringify(MissionConfig,null,2))
|
||||
AD_StartAlarmProcess();
|
||||
} else {
|
||||
var updateData = {
|
||||
@@ -182,7 +184,7 @@ function AD_StartAlarmProcess() {
|
||||
console.log("WILL KLICK SEND")
|
||||
setTimeout(() => {
|
||||
$('#mission_alarm_btn').click();
|
||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');},1000);`);
|
||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');},500);`);
|
||||
}, 250);
|
||||
}
|
||||
})
|
||||
@@ -504,12 +506,12 @@ function ADis_ProcessFireDepartment() {
|
||||
// - 49: AB-Öl
|
||||
// - 54: AB-Dekon-P
|
||||
// - 62: AB-Schlauch
|
||||
// -
|
||||
// -
|
||||
// - 75: FLF
|
||||
// - 76: Rettungstreppe
|
||||
// - 77: AB-Gefahrgut
|
||||
// - 78: AB-Einsatzleitung
|
||||
// -
|
||||
// -
|
||||
// - 83: GW-Werkfeuerwehr
|
||||
// - 84: ULF mit Löscharm
|
||||
// - 85: TM 50
|
||||
@@ -677,7 +679,7 @@ function ADis_ProcessFireDepartment() {
|
||||
{
|
||||
$("#vehicle_checkbox_" + VehicleID).click();
|
||||
ADis_VehiclesNeed["85"]--;
|
||||
}
|
||||
}
|
||||
*/
|
||||
else if (VehicleType == "Turbolöscher" &&
|
||||
ADis_VehiclesNeed["86"] > 0) // Turbolöscher
|
||||
|
||||
Reference in New Issue
Block a user