sprechwunsch....
This commit is contained in:
@@ -470,11 +470,12 @@ class AutomaticDispose {
|
||||
|
||||
|
||||
Check_Call_Police_Active() {
|
||||
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||
if ($('#h2_prisoners').length > 0) {
|
||||
console.log('Check_Call_Police_Active', MissionID);
|
||||
this.Collect_Jails();
|
||||
} else {
|
||||
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||
// console.log('Check_Call_Police_Active', MissionID)
|
||||
console.log('REMOVE: Check_Call_Police_Active', MissionID);
|
||||
this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
||||
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
||||
@@ -628,6 +629,7 @@ class AutomaticDispose {
|
||||
});
|
||||
|
||||
self.Jails.reverse();
|
||||
console.log(self.Jails)
|
||||
if (self.Jails.length > 0) {
|
||||
self.Send_Vehicle_To_Jail()
|
||||
} else {
|
||||
@@ -664,6 +666,7 @@ class AutomaticDispose {
|
||||
|
||||
// Gefängnis einlieferung
|
||||
Send_Vehicle_To_Jail() {
|
||||
console.log("Send_Vehicle_To_Jail")
|
||||
var JailHref = this.Jails[0].href
|
||||
document.location.href = document.location.origin + JailHref;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user