fpoav0
This commit is contained in:
@@ -85,10 +85,12 @@ window.ADis_MissionUpdate = function ADis_MissionUpdate(WindowName, UpdateData)
|
||||
window.ADis_MissionDelete = function ADis_MissionDelete(WindowName, MissionID) {
|
||||
if (['adis-krankentransporte'].indexOf(WindowName) !== -1) {
|
||||
ADis_RemoveKrankentransportFromQueue(MissionID);
|
||||
ADis_OpenNextKrankentransporte();
|
||||
} else if (['adis-plannedevents'].indexOf(WindowName) !== -1) {
|
||||
ADis_RemovePlannedEventsFromQueue(MissionID);
|
||||
} else if (['adis-ownmissions'].indexOf(WindowName) !== -1) {
|
||||
ADis_RemoveOwnMissionsFromQueue(MissionID);
|
||||
ADis_OpenNextKrankentransporte();
|
||||
} else if (['adis-verbandmission'].indexOf(WindowName) !== -1) {
|
||||
ADis_RemoveVerbandMissionsFromQueue(MissionID);
|
||||
} else if (['adis-verbandmission-event'].indexOf(WindowName) !== -1) {
|
||||
|
||||
@@ -48,12 +48,12 @@ $(document).ready(function () {
|
||||
|
||||
function MainHandler(){
|
||||
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
|
||||
console.log("DONE!");
|
||||
return tellParent(`setTimeout(function(){console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');},500);`); // delete Mission here as completed
|
||||
}
|
||||
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
|
||||
return tellParent(`setTimeout(function(){console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');},500);`); // update Mission here as updated or full
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
|
||||
Reference in New Issue
Block a user