v2 update check why missions not send
This commit is contained in:
Vendored
+1
-1
@@ -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)*/
|
||||||
var AutomaticDispose_Branch = "master";
|
var AutomaticDispose_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
var da_lss_adis_time = new Date().getTime();
|
||||||
|
|||||||
Vendored
+14
-13
@@ -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
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -18403,12 +18403,12 @@ class AutomaticDispose {
|
|||||||
// console.log("self.MyRunner", self.MyRunner);
|
// console.log("self.MyRunner", self.MyRunner);
|
||||||
// console.log("self.MyRunnerSettings", self.MyRunnerSettings);
|
// console.log("self.MyRunnerSettings", self.MyRunnerSettings);
|
||||||
|
|
||||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
// if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE: " + self.MissionID);
|
// console.log("DONE: ", self.MissionID);
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
// 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
|
// return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions], () => {
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions], () => {
|
||||||
self.ADSettings().then((setting) => {
|
self.ADSettings().then((setting) => {
|
||||||
if (setting[self.MyRunnerSettings] === 'true') {
|
if (setting[self.MyRunnerSettings] === 'true') {
|
||||||
@@ -18428,10 +18428,11 @@ class AutomaticDispose {
|
|||||||
return Wunsch.count(function (count) {
|
return Wunsch.count(function (count) {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Wunsch.each((mywunsch) => {
|
return Wunsch.each((mywunsch) => {
|
||||||
|
console.table(mywunsch);
|
||||||
return self.MainHandler()
|
return self.MainHandler()
|
||||||
});
|
});
|
||||||
} else {
|
} 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}');`);
|
return tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -18443,7 +18444,7 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
// }
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18452,13 +18453,13 @@ class AutomaticDispose {
|
|||||||
const self = this;
|
const self = this;
|
||||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE!");
|
console.log("DONE!");
|
||||||
console.log("DONE: " + self.MissionID);
|
console.log("DONE: ", self.MissionID);
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
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
|
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*/ ) {
|
} 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");
|
||||||
console.log("SEND: " + self.MissionID);
|
console.log("SEND: ", self.MissionID);
|
||||||
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
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
|
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(() => {
|
setTimeout(() => {
|
||||||
|
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
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();
|
window.$('#mission_alarm_btn').click();
|
||||||
});
|
});
|
||||||
}, 250);
|
}, 250);
|
||||||
@@ -18671,7 +18672,7 @@ class AutomaticDispose {
|
|||||||
if (mutation.attributeName === "style") {
|
if (mutation.attributeName === "style") {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
alarming(self)
|
alarming(self)
|
||||||
}, 750);
|
}, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
+13
-12
@@ -1162,12 +1162,12 @@ class AutomaticDispose {
|
|||||||
// console.log("self.MyRunner", self.MyRunner);
|
// console.log("self.MyRunner", self.MyRunner);
|
||||||
// console.log("self.MyRunnerSettings", self.MyRunnerSettings);
|
// console.log("self.MyRunnerSettings", self.MyRunnerSettings);
|
||||||
|
|
||||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
// if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE: " + self.MissionID);
|
// console.log("DONE: ", self.MissionID);
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
// 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
|
// return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions], () => {
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions], () => {
|
||||||
self.ADSettings().then((setting) => {
|
self.ADSettings().then((setting) => {
|
||||||
if (setting[self.MyRunnerSettings] === 'true') {
|
if (setting[self.MyRunnerSettings] === 'true') {
|
||||||
@@ -1187,10 +1187,11 @@ class AutomaticDispose {
|
|||||||
return Wunsch.count(function (count) {
|
return Wunsch.count(function (count) {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Wunsch.each((mywunsch) => {
|
return Wunsch.each((mywunsch) => {
|
||||||
|
console.table(mywunsch);
|
||||||
return self.MainHandler()
|
return self.MainHandler()
|
||||||
});
|
});
|
||||||
} else {
|
} 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}');`);
|
return tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -1202,7 +1203,7 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
// }
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1211,13 +1212,13 @@ class AutomaticDispose {
|
|||||||
const self = this;
|
const self = this;
|
||||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE!");
|
console.log("DONE!");
|
||||||
console.log("DONE: " + self.MissionID);
|
console.log("DONE: ", self.MissionID);
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
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
|
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*/ ) {
|
} 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");
|
||||||
console.log("SEND: " + self.MissionID);
|
console.log("SEND: ", self.MissionID);
|
||||||
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
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
|
return tellParent(`console.log('handler:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||||
});
|
});
|
||||||
@@ -1412,7 +1413,7 @@ class AutomaticDispose {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
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();
|
window.$('#mission_alarm_btn').click();
|
||||||
});
|
});
|
||||||
}, 250);
|
}, 250);
|
||||||
@@ -1430,7 +1431,7 @@ class AutomaticDispose {
|
|||||||
if (mutation.attributeName === "style") {
|
if (mutation.attributeName === "style") {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
alarming(self)
|
alarming(self)
|
||||||
}, 750);
|
}, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user