From 9cb3c40e907b1b254ff879e6574ed29496ba88af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Mon, 17 Dec 2018 18:58:20 +0100 Subject: [PATCH] v2 uo a98fu98 --- dist/autoloader.js | 2 +- dist/autoloaderV2.js | 14 +++++++------- src/autoloaderV2.js | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index 3f38320..a984de5 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 18:53:22 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 18:58:20 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(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index aaf3484..c8dba79 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 18:53:22 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 18:58:20 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -19094,21 +19094,21 @@ class AutomaticDispose { } } - // console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked')); - // console.log("WILL KLICK SEND") - setTimeout(() => { + console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked')); + console.log("WILL KLICK SEND") + self.UpdateMissionsToDone(self.MissionID).then(async () => { tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},2500);`); - if (window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) { + if (window.$("a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) { window.$('input[type=checkbox]').prop('checked', false); await self.WorkVerbandMission(true); window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!') - window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").click(); + window.$("a.btn.btn-success.btn-sm.alert_notify_alliance").click(); } else { window.$('#mission_alarm_btn').click(); } }); - }, 250); + }) } diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index a794f27..3c629f1 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1434,21 +1434,21 @@ class AutomaticDispose { } } - // console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked')); - // console.log("WILL KLICK SEND") - setTimeout(() => { + console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked')); + console.log("WILL KLICK SEND") + self.UpdateMissionsToDone(self.MissionID).then(async () => { tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},2500);`); - if (window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) { + if (window.$("a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) { window.$('input[type=checkbox]').prop('checked', false); await self.WorkVerbandMission(true); window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!') - window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").click(); + window.$("a.btn.btn-success.btn-sm.alert_notify_alliance").click(); } else { window.$('#mission_alarm_btn').click(); } }); - }, 250); + }) }