sprechwunsch....
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Fri Jan 11 2019 03:27:44 GMT+0100 (CET)*/
|
/*Generated on:Fri Jan 11 2019 03:32:38 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
+6
-3
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Fri Jan 11 2019 03:27:44 GMT+0100 (CET)*/
|
/*Generated on:Fri Jan 11 2019 03:32:38 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -17590,11 +17590,12 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
|
|
||||||
Check_Call_Police_Active() {
|
Check_Call_Police_Active() {
|
||||||
|
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
if ($('#h2_prisoners').length > 0) {
|
if ($('#h2_prisoners').length > 0) {
|
||||||
|
console.log('Check_Call_Police_Active', MissionID);
|
||||||
this.Collect_Jails();
|
this.Collect_Jails();
|
||||||
} else {
|
} else {
|
||||||
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
console.log('REMOVE: Check_Call_Police_Active', MissionID);
|
||||||
// console.log('Check_Call_Police_Active', MissionID)
|
|
||||||
this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||||
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
||||||
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
||||||
@@ -17748,6 +17749,7 @@ class AutomaticDispose {
|
|||||||
});
|
});
|
||||||
|
|
||||||
self.Jails.reverse();
|
self.Jails.reverse();
|
||||||
|
console.log(self.Jails)
|
||||||
if (self.Jails.length > 0) {
|
if (self.Jails.length > 0) {
|
||||||
self.Send_Vehicle_To_Jail()
|
self.Send_Vehicle_To_Jail()
|
||||||
} else {
|
} else {
|
||||||
@@ -17784,6 +17786,7 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
// Gefängnis einlieferung
|
// Gefängnis einlieferung
|
||||||
Send_Vehicle_To_Jail() {
|
Send_Vehicle_To_Jail() {
|
||||||
|
console.log("Send_Vehicle_To_Jail")
|
||||||
var JailHref = this.Jails[0].href
|
var JailHref = this.Jails[0].href
|
||||||
document.location.href = document.location.origin + JailHref;
|
document.location.href = document.location.origin + JailHref;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-2
@@ -470,11 +470,12 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
|
|
||||||
Check_Call_Police_Active() {
|
Check_Call_Police_Active() {
|
||||||
|
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
if ($('#h2_prisoners').length > 0) {
|
if ($('#h2_prisoners').length > 0) {
|
||||||
|
console.log('Check_Call_Police_Active', MissionID);
|
||||||
this.Collect_Jails();
|
this.Collect_Jails();
|
||||||
} else {
|
} else {
|
||||||
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
console.log('REMOVE: Check_Call_Police_Active', MissionID);
|
||||||
// console.log('Check_Call_Police_Active', MissionID)
|
|
||||||
this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||||
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
||||||
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
||||||
@@ -628,6 +629,7 @@ class AutomaticDispose {
|
|||||||
});
|
});
|
||||||
|
|
||||||
self.Jails.reverse();
|
self.Jails.reverse();
|
||||||
|
console.log(self.Jails)
|
||||||
if (self.Jails.length > 0) {
|
if (self.Jails.length > 0) {
|
||||||
self.Send_Vehicle_To_Jail()
|
self.Send_Vehicle_To_Jail()
|
||||||
} else {
|
} else {
|
||||||
@@ -664,6 +666,7 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
// Gefängnis einlieferung
|
// Gefängnis einlieferung
|
||||||
Send_Vehicle_To_Jail() {
|
Send_Vehicle_To_Jail() {
|
||||||
|
console.log("Send_Vehicle_To_Jail")
|
||||||
var JailHref = this.Jails[0].href
|
var JailHref = this.Jails[0].href
|
||||||
document.location.href = document.location.origin + JailHref;
|
document.location.href = document.location.origin + JailHref;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user