diff --git a/dist/autoloader.js b/dist/autoloader.js index 8cec1de..e92bcc2 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 19:52:23 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 19:58:14 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 b77e0f7..8ecf1ce 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 19:52:23 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 19:58:14 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -19034,6 +19034,7 @@ class AutomaticDispose { self.StartAlarmProcess(); } else { self.UpdateMissionsToDone(self.MissionID); + return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full } } }); @@ -19099,7 +19100,13 @@ class AutomaticDispose { // window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!') // window.$("a.btn.btn-success.btn-sm.alert_notify_alliance").click(); //} else { - window.$('#mission_alarm_btn').click(); + if ($('#vehicle_show_table_all input[type="checkbox"]:checked').length){ + console.log('send now') + window.$('#mission_alarm_btn').click(); + tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},500);`); + } else { + tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},500);`); + } //} }); diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index b8456f1..3fc6ff4 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1374,6 +1374,7 @@ class AutomaticDispose { self.StartAlarmProcess(); } else { self.UpdateMissionsToDone(self.MissionID); + return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full } } }); @@ -1439,7 +1440,13 @@ class AutomaticDispose { // window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!') // window.$("a.btn.btn-success.btn-sm.alert_notify_alliance").click(); //} else { - window.$('#mission_alarm_btn').click(); + if ($('#vehicle_show_table_all input[type="checkbox"]:checked').length){ + console.log('send now') + window.$('#mission_alarm_btn').click(); + tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},500);`); + } else { + tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},500);`); + } //} });