poav9d
This commit is contained in:
6
dist/autoloader.js
vendored
6
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Tue Nov 27 2018 14:48:41 GMT+0100 (CET)*/
|
/*Generated on:Tue Nov 27 2018 15:04:41 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();
|
||||||
@@ -5299,11 +5299,11 @@ ADisDB.on("ready", () => {
|
|||||||
function MainHandler(){
|
function MainHandler(){
|
||||||
if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE!");
|
console.log("DONE!");
|
||||||
return tellParent(`setTimeout(function(){console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');},500);`); // delete Mission here as completed
|
return tellParent(`console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');`); // delete Mission here as completed
|
||||||
}
|
}
|
||||||
if (includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") /*|| $('#vehicle_show_table_all input[type="checkbox"]:checked').size() > 0*/ ) {
|
if (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");
|
console.log("SEND");
|
||||||
return tellParent(`setTimeout(function(){console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');},500);`); // update Mission here as updated or full
|
return tellParent(`console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');`); // update Mission here as updated or full
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||||
|
|||||||
2
dist/standalone.js
vendored
2
dist/standalone.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Tue Nov 27 2018 14:48:41 GMT+0100 (CET)*/
|
/*Generated on:Tue Nov 27 2018 15:04:41 GMT+0100 (CET)*/
|
||||||
function includesString(string1, string2) {
|
function includesString(string1, string2) {
|
||||||
return string1.toLowerCase().includes(string2.toLowerCase());
|
return string1.toLowerCase().includes(string2.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,11 +49,11 @@ $(document).ready(function () {
|
|||||||
function MainHandler(){
|
function MainHandler(){
|
||||||
if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
if (includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE!");
|
console.log("DONE!");
|
||||||
return tellParent(`setTimeout(function(){console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');},500);`); // delete Mission here as completed
|
return tellParent(`console.log('done:${window.name}:${MissionID}');ADis_MissionDelete('${window.name}', '${MissionID}');`); // delete Mission here as completed
|
||||||
}
|
}
|
||||||
if (includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") /*|| $('#vehicle_show_table_all input[type="checkbox"]:checked').size() > 0*/ ) {
|
if (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");
|
console.log("SEND");
|
||||||
return tellParent(`setTimeout(function(){console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');},500);`); // update Mission here as updated or full
|
return tellParent(`console.log('update:${window.name}:${MissionID}');ADis_MissionUpdateDone('${window.name}', '${MissionID}');`); // update Mission here as updated or full
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user