This commit is contained in:
2019-01-11 04:07:33 +01:00
parent 4f5e36e24a
commit 1515eac691
3 changed files with 34 additions and 16 deletions

View File

@@ -441,12 +441,12 @@ class AutomaticDispose {
$("#adis-sprechwunsch-police-frame").attr("src", "https://www.leitstellenspiel.de/missions/" + MissionID);
$("#adis-sprechwunsch-police-frame").attr("mission_id", MissionID);
self.PoliceVehicleFrameWatchDog = setTimeout((MissionID) => {
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
$("#adis-sprechwunsch-police-frame").attr("src", "");
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
});
}, 1500, MissionID);
//self.PoliceVehicleFrameWatchDog = setTimeout((MissionID) => {
// self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
// $("#adis-sprechwunsch-police-frame").attr("src", "");
// $("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
// });
//}, 1500, MissionID);
}
});
});
@@ -665,7 +665,16 @@ class AutomaticDispose {
// Gefängnis einlieferung
Send_Vehicle_To_Jail() {
var JailHref = this.Jails[0].href
document.location.href = document.location.origin + JailHref;
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
const runnerID = self.ADisSettings.runner_iframesName.indexOf(window.name);
self.MyRunner = self.ADisSettings.runner[runnerID];
self.MyRunnerSettings = self.ADisSettings.runner_settings[runnerID];
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
$("#adis-sprechwunsch-police-frame").attr("src", "");
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
document.location.href = document.location.origin + JailHref;
});
}
// -