remove console.* and window.console.* and also tellparent console.*
This commit is contained in:
58
dist/autoloaderV2.js
vendored
58
dist/autoloaderV2.js
vendored
@@ -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
|
||||
* ===============================================
|
||||
@@ -18071,10 +18071,10 @@
|
||||
// - Sprechwunsch Handler Polizei/Gefangene
|
||||
// -
|
||||
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();
|
||||
} 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();
|
||||
}
|
||||
|
||||
@@ -18401,7 +18401,7 @@
|
||||
let self = this;
|
||||
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");
|
||||
console.log("DEBUG:::::: URL: ", href)
|
||||
//console.log("DEBUG:::::: URL: ", href)
|
||||
document.location.href = document.location.origin + href;
|
||||
} else {
|
||||
self.Check_Call_Hospitals();
|
||||
@@ -18594,7 +18594,7 @@
|
||||
var JailHref = this.Jails[0].href
|
||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||
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;
|
||||
});
|
||||
}
|
||||
@@ -19298,8 +19298,8 @@
|
||||
return Wunsch.count(function (count) {
|
||||
if (count > 0) {
|
||||
return Wunsch.each((myWunsch) => {
|
||||
console.log("DEBUG:::::: MYWUNSCH:")
|
||||
console.table(myWunsch);
|
||||
//console.log("DEBUG:::::: MYWUNSCH:")
|
||||
//console.table(myWunsch);
|
||||
let MissionID = myWunsch.missionID;
|
||||
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
||||
|
||||
@@ -19350,11 +19350,11 @@
|
||||
} else {
|
||||
self.MissionType = null;
|
||||
}
|
||||
console.log("DEBUG:::::: MissionID", self.MissionID);
|
||||
console.log("DEBUG:::::: MissionType", self.MissionType);
|
||||
console.log("DEBUG:::::: Window", window.name);
|
||||
console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
||||
console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings);
|
||||
// console.log("DEBUG:::::: MissionID", self.MissionID);
|
||||
// console.log("DEBUG:::::: MissionType", self.MissionType);
|
||||
// console.log("DEBUG:::::: Window", window.name);
|
||||
// console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
||||
// console.log("DEBUG:::::: 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);
|
||||
@@ -19386,13 +19386,13 @@
|
||||
});
|
||||
} else {
|
||||
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 {
|
||||
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() {
|
||||
const self = this;
|
||||
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 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") ) {
|
||||
@@ -19420,7 +19420,7 @@
|
||||
else {
|
||||
setTimeout(function () {
|
||||
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();
|
||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||
self.WorkVerbandMission();
|
||||
@@ -19538,7 +19538,7 @@
|
||||
}).then((availableMission) => {
|
||||
if (availableMission != undefined && 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();
|
||||
} else {
|
||||
var updateData = {
|
||||
@@ -19604,23 +19604,23 @@
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
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) {
|
||||
window.console.log('nocars selected...', vhcalled.length);
|
||||
//window.console.log('nocars selected...', vhcalled.length);
|
||||
if (window.name == 'adis-krankentransporte') {
|
||||
window.console.log('nocars selected... select KTW');
|
||||
//window.console.log('nocars selected... select KTW');
|
||||
$('#aao_2753841').click();
|
||||
window.$('#mission_alarm_btn').click();
|
||||
} else {
|
||||
window.console.log('nocars selected... start new run');
|
||||
tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||
//window.console.log('nocars selected... start new run');
|
||||
tellParent(`/*console.log('nocars:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||
}
|
||||
} 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.console.log("WILL KLICK SEND3", self.MissionID, window.name)
|
||||
}
|
||||
@@ -19653,7 +19653,7 @@
|
||||
$div.click();
|
||||
} else {
|
||||
*/
|
||||
window.console.log('StartAlarmProcessProc()');
|
||||
//window.console.log('StartAlarmProcessProc()');
|
||||
self.StartAlarmProcessProc()
|
||||
//}
|
||||
|
||||
@@ -19701,7 +19701,7 @@
|
||||
|
||||
} catch (e) {}
|
||||
});
|
||||
console.table(self.Vehicles);
|
||||
//console.table(self.Vehicles);
|
||||
return self.Vehicles;
|
||||
}
|
||||
|
||||
@@ -20640,7 +20640,7 @@
|
||||
clearTimeout(ppppp);
|
||||
}
|
||||
ppppp = setTimeout(function () {
|
||||
window. //console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||
//window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
||||
}, 250);
|
||||
}
|
||||
@@ -20663,7 +20663,7 @@
|
||||
|
||||
$div.click();
|
||||
} else {
|
||||
window. //console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||
//window.console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||
window.AutomaticDisposeCall = new AutomaticDispose(window.faye);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user