From 3d057ad3e8744515d4fb5032f5a67af275276f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Tue, 27 Nov 2018 15:04:42 +0100 Subject: [PATCH] poav9d --- dist/autoloader.js | 6 +++--- dist/standalone.js | 2 +- script/mission/handler.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index 9017eaf..cb469b7 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Tue Nov 27 2018 14:48:41 GMT+0100 (CET)*/ +/*Generated on:Tue Nov 27 2018 15:04:41 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); @@ -5299,11 +5299,11 @@ ADisDB.on("ready", () => { function MainHandler(){ if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { console.log("DONE!"); - return tellParent(`setTimeout(function(){console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');},500);`); // delete Mission here as completed + return tellParent(`console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');`); // 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 tellParent(`setTimeout(function(){console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');},500);`); // update Mission here as updated or full + return tellParent(`console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');`); // update Mission here as updated or full } else { setTimeout(function () { if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) { diff --git a/dist/standalone.js b/dist/standalone.js index 1d020bf..0e80c65 100644 --- a/dist/standalone.js +++ b/dist/standalone.js @@ -1,4 +1,4 @@ -/*Generated on:Tue Nov 27 2018 14:48:41 GMT+0100 (CET)*/ +/*Generated on:Tue Nov 27 2018 15:04:41 GMT+0100 (CET)*/ function includesString(string1, string2) { return string1.toLowerCase().includes(string2.toLowerCase()); } diff --git a/script/mission/handler.js b/script/mission/handler.js index d6a1119..b4fad26 100755 --- a/script/mission/handler.js +++ b/script/mission/handler.js @@ -49,11 +49,11 @@ $(document).ready(function () { function MainHandler(){ if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { console.log("DONE!"); - return tellParent(`setTimeout(function(){console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');},500);`); // delete Mission here as completed + return tellParent(`console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');`); // 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 tellParent(`setTimeout(function(){console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');},500);`); // update Mission here as updated or full + return tellParent(`console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');`); // update Mission here as updated or full } else { setTimeout(function () { if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {