From 1c53ed7e19b65893c1b985b6661d6a04af94680c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Mon, 3 Dec 2018 14:32:41 +0100 Subject: [PATCH] v2 fix send ... --- dist/autoloader.js | 2 +- dist/autoloaderV2.js | 4 ++-- src/autoloaderV2.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index de8b70f..646857c 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 03 2018 14:27:15 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 03 2018 14:32:40 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 007b929..780d52d 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 03 2018 14:27:15 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 03 2018 14:32:40 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -18760,7 +18760,7 @@ class AutomaticDispose { if (self.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: " + self.MissionID); return self.UpdateMissionsToDone(self.MissionID).then(() => { - return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');`); // update Mission here as updated or full + return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full }); } else { setTimeout(function () { diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index b02896d..c3e7cad 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1168,7 +1168,7 @@ class AutomaticDispose { if (self.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: " + self.MissionID); return self.UpdateMissionsToDone(self.MissionID).then(() => { - return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');`); // update Mission here as updated or full + return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full }); } else { setTimeout(function () {