v2 upa09
This commit is contained in:
2
dist/autoloader.js
vendored
2
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Wed Dec 19 2018 15:57:00 GMT+0100 (CET)*/
|
||||
/*Generated on:Wed Dec 19 2018 16:02:18 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();
|
||||
|
||||
14
dist/autoloaderV2.js
vendored
14
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Wed Dec 19 2018 15:57:00 GMT+0100 (CET)*/
|
||||
/*Generated on:Wed Dec 19 2018 16:02:18 GMT+0100 (CET)*/
|
||||
/*
|
||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||
* ===============================================
|
||||
@@ -18452,30 +18452,30 @@ class AutomaticDispose {
|
||||
MainHandler() {
|
||||
const self = this;
|
||||
if (self.includesString($('div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
setTimeout(function () {
|
||||
|
||||
console.log("DONE!");
|
||||
console.log("DONE: ", self.MissionID);
|
||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||
return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed
|
||||
})
|
||||
}, 250);
|
||||
|
||||
} else if (self.includesString($('#iframe-inside-container div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert")) {
|
||||
setTimeout(function () {
|
||||
|
||||
console.log("SEND");
|
||||
console.log("SEND: ", self.MissionID);
|
||||
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||
});
|
||||
}, 250);
|
||||
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("WILL SEND?")
|
||||
self.CheckMissionAutomatic();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
self.WorkVerbandMission();
|
||||
}
|
||||
}, 250);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1211,30 +1211,30 @@ class AutomaticDispose {
|
||||
MainHandler() {
|
||||
const self = this;
|
||||
if (self.includesString($('div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
setTimeout(function () {
|
||||
|
||||
console.log("DONE!");
|
||||
console.log("DONE: ", self.MissionID);
|
||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||
return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed
|
||||
})
|
||||
}, 250);
|
||||
|
||||
} else if (self.includesString($('#iframe-inside-container div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert")) {
|
||||
setTimeout(function () {
|
||||
|
||||
console.log("SEND");
|
||||
console.log("SEND: ", self.MissionID);
|
||||
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||
});
|
||||
}, 250);
|
||||
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("WILL SEND?")
|
||||
self.CheckMissionAutomatic();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
self.WorkVerbandMission();
|
||||
}
|
||||
}, 250);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user