v2 update check why missions not send
This commit is contained in:
27
dist/autoloaderV2.js
vendored
27
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Tue Dec 18 2018 00:44:24 GMT+0100 (CET)*/
|
||||
/*Generated on:Tue Dec 18 2018 01:35:32 GMT+0100 (CET)*/
|
||||
/*
|
||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||
* ===============================================
|
||||
@@ -18403,12 +18403,12 @@ class AutomaticDispose {
|
||||
// console.log("self.MyRunner", self.MyRunner);
|
||||
// console.log("self.MyRunnerSettings", self.MyRunnerSettings);
|
||||
|
||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
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
|
||||
})
|
||||
} else {
|
||||
// if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
// 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
|
||||
// })
|
||||
// } else {
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions], () => {
|
||||
self.ADSettings().then((setting) => {
|
||||
if (setting[self.MyRunnerSettings] === 'true') {
|
||||
@@ -18428,10 +18428,11 @@ class AutomaticDispose {
|
||||
return Wunsch.count(function (count) {
|
||||
if (count > 0) {
|
||||
return Wunsch.each((mywunsch) => {
|
||||
console.table(mywunsch);
|
||||
return self.MainHandler()
|
||||
});
|
||||
} else {
|
||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
return tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||
})
|
||||
}
|
||||
@@ -18443,7 +18444,7 @@ class AutomaticDispose {
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
// }
|
||||
}, 100);
|
||||
}
|
||||
|
||||
@@ -18452,13 +18453,13 @@ class AutomaticDispose {
|
||||
const self = this;
|
||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
console.log("DONE!");
|
||||
console.log("DONE: " + self.MissionID);
|
||||
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
|
||||
})
|
||||
} else if (self.includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") /*|| $('#vehicle_show_table_all input[type="checkbox"]:checked').length > 0*/ ) {
|
||||
console.log("SEND");
|
||||
console.log("SEND: " + self.MissionID);
|
||||
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
|
||||
});
|
||||
@@ -18653,7 +18654,7 @@ class AutomaticDispose {
|
||||
setTimeout(() => {
|
||||
|
||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
||||
tellParent(`console.log('ok:${window.name}:${self.MissionID}');`);
|
||||
window.$('#mission_alarm_btn').click();
|
||||
});
|
||||
}, 250);
|
||||
@@ -18671,7 +18672,7 @@ class AutomaticDispose {
|
||||
if (mutation.attributeName === "style") {
|
||||
setTimeout(function () {
|
||||
alarming(self)
|
||||
}, 750);
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user