remove console.* and window.console.* and also tellparent console.*
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Feb 18 2019 11:36:29 GMT+0100 (CET)*/
|
/*Generated on:Mon Feb 18 2019 11:47:50 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
+29
-29
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Feb 18 2019 11:36:29 GMT+0100 (CET)*/
|
/*Generated on:Mon Feb 18 2019 11:47:50 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -18071,10 +18071,10 @@
|
|||||||
// - Sprechwunsch Handler Polizei/Gefangene
|
// - Sprechwunsch Handler Polizei/Gefangene
|
||||||
// -
|
// -
|
||||||
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
||||||
window.console.log('DEBUG:::: Start Police Active')
|
//window.console.log('DEBUG:::: Start Police Active')
|
||||||
self.Check_Call_Police_Active();
|
self.Check_Call_Police_Active();
|
||||||
} else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') {
|
} else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') {
|
||||||
window.console.log('DEBUG:::: Start Mission')
|
//window.console.log('DEBUG:::: Start Mission')
|
||||||
self.StartMission();
|
self.StartMission();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18401,7 +18401,7 @@
|
|||||||
let self = this;
|
let self = this;
|
||||||
if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
||||||
let href = $("a:contains('Alarmieren')").first().attr("href");
|
let href = $("a:contains('Alarmieren')").first().attr("href");
|
||||||
console.log("DEBUG:::::: URL: ", href)
|
//console.log("DEBUG:::::: URL: ", href)
|
||||||
document.location.href = document.location.origin + href;
|
document.location.href = document.location.origin + href;
|
||||||
} else {
|
} else {
|
||||||
self.Check_Call_Hospitals();
|
self.Check_Call_Hospitals();
|
||||||
@@ -18594,7 +18594,7 @@
|
|||||||
var JailHref = this.Jails[0].href
|
var JailHref = this.Jails[0].href
|
||||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||||
tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`);
|
tellParent(`/*console.log('sprechwunsch:${window.name}:${MissionID}');*/setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`);
|
||||||
document.location.href = document.location.origin + JailHref;
|
document.location.href = document.location.origin + JailHref;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -19298,8 +19298,8 @@
|
|||||||
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.log("DEBUG:::::: MYWUNSCH:")
|
//console.log("DEBUG:::::: MYWUNSCH:")
|
||||||
console.table(myWunsch);
|
//console.table(myWunsch);
|
||||||
let MissionID = myWunsch.missionID;
|
let MissionID = myWunsch.missionID;
|
||||||
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
||||||
|
|
||||||
@@ -19350,11 +19350,11 @@
|
|||||||
} else {
|
} else {
|
||||||
self.MissionType = null;
|
self.MissionType = null;
|
||||||
}
|
}
|
||||||
console.log("DEBUG:::::: MissionID", self.MissionID);
|
// console.log("DEBUG:::::: MissionID", self.MissionID);
|
||||||
console.log("DEBUG:::::: MissionType", self.MissionType);
|
// console.log("DEBUG:::::: MissionType", self.MissionType);
|
||||||
console.log("DEBUG:::::: Window", window.name);
|
// console.log("DEBUG:::::: Window", window.name);
|
||||||
console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
// console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
||||||
console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings);
|
// console.log("DEBUG:::::: 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);
|
||||||
@@ -19386,13 +19386,13 @@
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return self.UpdateMissionsToDone(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}');`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||||
return tellParent(`console.log('wunsch:2000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
return tellParent(`/*console.log('wunsch:2000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -19405,9 +19405,9 @@
|
|||||||
MainHandler() {
|
MainHandler() {
|
||||||
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("DEBUG:::::: DONE: ", self.MissionID);
|
//console.log("DEBUG:::::: 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") ) {
|
/*else if (self.includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") ) {
|
||||||
@@ -19420,7 +19420,7 @@
|
|||||||
else {
|
else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||||
console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID)
|
//console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID)
|
||||||
self.CheckMissionAutomatic();
|
self.CheckMissionAutomatic();
|
||||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||||
self.WorkVerbandMission();
|
self.WorkVerbandMission();
|
||||||
@@ -19538,7 +19538,7 @@
|
|||||||
}).then((availableMission) => {
|
}).then((availableMission) => {
|
||||||
if (availableMission != undefined && availableMission.jsondata) {
|
if (availableMission != undefined && availableMission.jsondata) {
|
||||||
self.MissionConfig = availableMission.jsondata;
|
self.MissionConfig = availableMission.jsondata;
|
||||||
console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2))
|
//console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2))
|
||||||
self.StartAlarmProcess();
|
self.StartAlarmProcess();
|
||||||
} else {
|
} else {
|
||||||
var updateData = {
|
var updateData = {
|
||||||
@@ -19604,23 +19604,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let vhcalled = window.$('#vehicle_show_table_all input[type="checkbox"]:checked');
|
let vhcalled = window.$('#vehicle_show_table_all input[type="checkbox"]:checked');
|
||||||
window.console.log("Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled);
|
// window.console.log("DEBUG:::: Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled);
|
||||||
// window.console.log("WILL KLICK SEND", self.MissionID, window.name)
|
// window.console.log("WILL KLICK SEND", self.MissionID, window.name)
|
||||||
|
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||||
tellParent(`console.log('ok:${window.name}:${self.MissionID}');`);
|
//tellParent(`console.log('ok:${window.name}:${self.MissionID}');`);
|
||||||
if (vhcalled.length == 0) {
|
if (vhcalled.length == 0) {
|
||||||
window.console.log('nocars selected...', vhcalled.length);
|
//window.console.log('nocars selected...', vhcalled.length);
|
||||||
if (window.name == 'adis-krankentransporte') {
|
if (window.name == 'adis-krankentransporte') {
|
||||||
window.console.log('nocars selected... select KTW');
|
//window.console.log('nocars selected... select KTW');
|
||||||
$('#aao_2753841').click();
|
$('#aao_2753841').click();
|
||||||
window.$('#mission_alarm_btn').click();
|
window.$('#mission_alarm_btn').click();
|
||||||
} else {
|
} else {
|
||||||
window.console.log('nocars selected... start new run');
|
//window.console.log('nocars selected... start new run');
|
||||||
tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
tellParent(`/*console.log('nocars:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tellParent(`console.log('sendcars:${window.name}:${self.MissionID}');setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`);
|
tellParent(`/*console.log('sendcars:${window.name}:${self.MissionID}');*/setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`);
|
||||||
window.$('#mission_alarm_btn').click();
|
window.$('#mission_alarm_btn').click();
|
||||||
//window.console.log("WILL KLICK SEND3", self.MissionID, window.name)
|
//window.console.log("WILL KLICK SEND3", self.MissionID, window.name)
|
||||||
}
|
}
|
||||||
@@ -19653,7 +19653,7 @@
|
|||||||
$div.click();
|
$div.click();
|
||||||
} else {
|
} else {
|
||||||
*/
|
*/
|
||||||
window.console.log('StartAlarmProcessProc()');
|
//window.console.log('StartAlarmProcessProc()');
|
||||||
self.StartAlarmProcessProc()
|
self.StartAlarmProcessProc()
|
||||||
//}
|
//}
|
||||||
|
|
||||||
@@ -19701,7 +19701,7 @@
|
|||||||
|
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
});
|
});
|
||||||
console.table(self.Vehicles);
|
//console.table(self.Vehicles);
|
||||||
return self.Vehicles;
|
return self.Vehicles;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -20640,7 +20640,7 @@
|
|||||||
clearTimeout(ppppp);
|
clearTimeout(ppppp);
|
||||||
}
|
}
|
||||||
ppppp = setTimeout(function () {
|
ppppp = setTimeout(function () {
|
||||||
window. //console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
//window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
@@ -20663,7 +20663,7 @@
|
|||||||
|
|
||||||
$div.click();
|
$div.click();
|
||||||
} else {
|
} else {
|
||||||
window. //console.log('DEBUG:::', 'Start AutomaticDispose()')
|
//window.console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
+28
-28
@@ -272,10 +272,10 @@
|
|||||||
// - Sprechwunsch Handler Polizei/Gefangene
|
// - Sprechwunsch Handler Polizei/Gefangene
|
||||||
// -
|
// -
|
||||||
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
||||||
window.console.log('DEBUG:::: Start Police Active')
|
//window.console.log('DEBUG:::: Start Police Active')
|
||||||
self.Check_Call_Police_Active();
|
self.Check_Call_Police_Active();
|
||||||
} else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') {
|
} else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') {
|
||||||
window.console.log('DEBUG:::: Start Mission')
|
//window.console.log('DEBUG:::: Start Mission')
|
||||||
self.StartMission();
|
self.StartMission();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -602,7 +602,7 @@
|
|||||||
let self = this;
|
let self = this;
|
||||||
if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
||||||
let href = $("a:contains('Alarmieren')").first().attr("href");
|
let href = $("a:contains('Alarmieren')").first().attr("href");
|
||||||
console.log("DEBUG:::::: URL: ", href)
|
//console.log("DEBUG:::::: URL: ", href)
|
||||||
document.location.href = document.location.origin + href;
|
document.location.href = document.location.origin + href;
|
||||||
} else {
|
} else {
|
||||||
self.Check_Call_Hospitals();
|
self.Check_Call_Hospitals();
|
||||||
@@ -795,7 +795,7 @@
|
|||||||
var JailHref = this.Jails[0].href
|
var JailHref = this.Jails[0].href
|
||||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||||
tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`);
|
tellParent(`/*console.log('sprechwunsch:${window.name}:${MissionID}');*/setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`);
|
||||||
document.location.href = document.location.origin + JailHref;
|
document.location.href = document.location.origin + JailHref;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1265,8 +1265,8 @@
|
|||||||
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.log("DEBUG:::::: MYWUNSCH:")
|
//console.log("DEBUG:::::: MYWUNSCH:")
|
||||||
console.table(myWunsch);
|
//console.table(myWunsch);
|
||||||
let MissionID = myWunsch.missionID;
|
let MissionID = myWunsch.missionID;
|
||||||
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
||||||
|
|
||||||
@@ -1317,11 +1317,11 @@
|
|||||||
} else {
|
} else {
|
||||||
self.MissionType = null;
|
self.MissionType = null;
|
||||||
}
|
}
|
||||||
console.log("DEBUG:::::: MissionID", self.MissionID);
|
// console.log("DEBUG:::::: MissionID", self.MissionID);
|
||||||
console.log("DEBUG:::::: MissionType", self.MissionType);
|
// console.log("DEBUG:::::: MissionType", self.MissionType);
|
||||||
console.log("DEBUG:::::: Window", window.name);
|
// console.log("DEBUG:::::: Window", window.name);
|
||||||
console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
// console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
||||||
console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings);
|
// console.log("DEBUG:::::: 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);
|
||||||
@@ -1353,13 +1353,13 @@
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return self.UpdateMissionsToDone(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}');`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||||
return tellParent(`console.log('wunsch:2000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
return tellParent(`/*console.log('wunsch:2000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1372,9 +1372,9 @@
|
|||||||
MainHandler() {
|
MainHandler() {
|
||||||
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("DEBUG:::::: DONE: ", self.MissionID);
|
//console.log("DEBUG:::::: 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") ) {
|
/*else if (self.includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") ) {
|
||||||
@@ -1387,7 +1387,7 @@
|
|||||||
else {
|
else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||||
console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID)
|
//console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID)
|
||||||
self.CheckMissionAutomatic();
|
self.CheckMissionAutomatic();
|
||||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||||
self.WorkVerbandMission();
|
self.WorkVerbandMission();
|
||||||
@@ -1505,7 +1505,7 @@
|
|||||||
}).then((availableMission) => {
|
}).then((availableMission) => {
|
||||||
if (availableMission != undefined && availableMission.jsondata) {
|
if (availableMission != undefined && availableMission.jsondata) {
|
||||||
self.MissionConfig = availableMission.jsondata;
|
self.MissionConfig = availableMission.jsondata;
|
||||||
console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2))
|
//console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2))
|
||||||
self.StartAlarmProcess();
|
self.StartAlarmProcess();
|
||||||
} else {
|
} else {
|
||||||
var updateData = {
|
var updateData = {
|
||||||
@@ -1571,23 +1571,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let vhcalled = window.$('#vehicle_show_table_all input[type="checkbox"]:checked');
|
let vhcalled = window.$('#vehicle_show_table_all input[type="checkbox"]:checked');
|
||||||
window.console.log("Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled);
|
// window.console.log("DEBUG:::: Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled);
|
||||||
// window.console.log("WILL KLICK SEND", self.MissionID, window.name)
|
// window.console.log("WILL KLICK SEND", self.MissionID, window.name)
|
||||||
|
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||||
tellParent(`console.log('ok:${window.name}:${self.MissionID}');`);
|
//tellParent(`console.log('ok:${window.name}:${self.MissionID}');`);
|
||||||
if (vhcalled.length == 0) {
|
if (vhcalled.length == 0) {
|
||||||
window.console.log('nocars selected...', vhcalled.length);
|
//window.console.log('nocars selected...', vhcalled.length);
|
||||||
if (window.name == 'adis-krankentransporte') {
|
if (window.name == 'adis-krankentransporte') {
|
||||||
window.console.log('nocars selected... select KTW');
|
//window.console.log('nocars selected... select KTW');
|
||||||
$('#aao_2753841').click();
|
$('#aao_2753841').click();
|
||||||
window.$('#mission_alarm_btn').click();
|
window.$('#mission_alarm_btn').click();
|
||||||
} else {
|
} else {
|
||||||
window.console.log('nocars selected... start new run');
|
//window.console.log('nocars selected... start new run');
|
||||||
tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
tellParent(`/*console.log('nocars:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tellParent(`console.log('sendcars:${window.name}:${self.MissionID}');setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`);
|
tellParent(`/*console.log('sendcars:${window.name}:${self.MissionID}');*/setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`);
|
||||||
window.$('#mission_alarm_btn').click();
|
window.$('#mission_alarm_btn').click();
|
||||||
//window.console.log("WILL KLICK SEND3", self.MissionID, window.name)
|
//window.console.log("WILL KLICK SEND3", self.MissionID, window.name)
|
||||||
}
|
}
|
||||||
@@ -1620,7 +1620,7 @@
|
|||||||
$div.click();
|
$div.click();
|
||||||
} else {
|
} else {
|
||||||
*/
|
*/
|
||||||
window.console.log('StartAlarmProcessProc()');
|
//window.console.log('StartAlarmProcessProc()');
|
||||||
self.StartAlarmProcessProc()
|
self.StartAlarmProcessProc()
|
||||||
//}
|
//}
|
||||||
|
|
||||||
@@ -1668,7 +1668,7 @@
|
|||||||
|
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
});
|
});
|
||||||
console.table(self.Vehicles);
|
//console.table(self.Vehicles);
|
||||||
return self.Vehicles;
|
return self.Vehicles;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2607,7 +2607,7 @@
|
|||||||
clearTimeout(ppppp);
|
clearTimeout(ppppp);
|
||||||
}
|
}
|
||||||
ppppp = setTimeout(function () {
|
ppppp = setTimeout(function () {
|
||||||
window. //console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
//window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
@@ -2630,7 +2630,7 @@
|
|||||||
|
|
||||||
$div.click();
|
$div.click();
|
||||||
} else {
|
} else {
|
||||||
window. //console.log('DEBUG:::', 'Start AutomaticDispose()')
|
//window.console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user