fampy
This commit is contained in:
9
dist/autoloader.js
vendored
9
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Sat Nov 24 2018 15:52:48 GMT+0100 (CET)*/
|
||||
/*Generated on:Sat Nov 24 2018 15:56:49 GMT+0100 (CET)*/
|
||||
var AutomaticDispose_Branch = "master";
|
||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||
var da_lss_adis_time = new Date().getTime();
|
||||
@@ -6411,6 +6411,8 @@ ADisDB.on("ready", () => {
|
||||
}).catch((err) => {})
|
||||
}
|
||||
$(document).ready(function () {
|
||||
|
||||
console.log('Police Sprechwunsch load: start');
|
||||
setInterval(ADis_CollectPoliceSprechwuensche, 5000);
|
||||
setInterval(ADis_OpenNextPoliceSprechwunsch, 5000);
|
||||
ADis_CollectPoliceSprechwuensche();
|
||||
@@ -6442,6 +6444,8 @@ ADisDB.on("ready", () => {
|
||||
}
|
||||
|
||||
function ADis_OpenNextPoliceSprechwunsch() {
|
||||
|
||||
console.log('ADis_OpenNextPoliceSprechwunsch: start');
|
||||
ADisSettings().then((setting) => {
|
||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||
return ADisDB.ADisSprechwunschPolice.where({
|
||||
@@ -6451,6 +6455,7 @@ ADisDB.on("ready", () => {
|
||||
}).then((Wunsch) => {
|
||||
if (Wunsch !== undefined) {
|
||||
Wunsch.each((myWunsch) => {
|
||||
console.log(myWunsch, typeof myWunsch);
|
||||
let MissionID = myWunsch.missionID;
|
||||
ADis_UpdatePoliceSprechwunschToDone(MissionID).then(() => {
|
||||
if ($("#adis-sprechwunsch-police-frame").attr("mission_id") == "empty") {
|
||||
@@ -6600,6 +6605,8 @@ ADisDB.on("ready", () => {
|
||||
// -
|
||||
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
||||
$(document).ready(function () {
|
||||
|
||||
console.log('Police Sprechwunsch load handler: start');
|
||||
setTimeout(function () {
|
||||
ADis_Check_Call_Police_Active();
|
||||
}, 250);
|
||||
|
||||
2
dist/standalone.js
vendored
2
dist/standalone.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Sat Nov 24 2018 15:52:48 GMT+0100 (CET)*/
|
||||
/*Generated on:Sat Nov 24 2018 15:56:49 GMT+0100 (CET)*/
|
||||
function includesString(string1, string2) {
|
||||
return string1.toLowerCase().includes(string2.toLowerCase());
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
console.log('Police Sprechwunsch load handler: start');
|
||||
setTimeout(function () {
|
||||
ADis_Check_Call_Police_Active();
|
||||
}, 250);
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
console.log('Police Sprechwunsch load: start');
|
||||
setInterval(ADis_CollectPoliceSprechwuensche, 5000);
|
||||
setInterval(ADis_OpenNextPoliceSprechwunsch, 5000);
|
||||
ADis_CollectPoliceSprechwuensche();
|
||||
@@ -30,6 +32,8 @@ function ADis_CollectPoliceSprechwuensche() {
|
||||
}
|
||||
|
||||
function ADis_OpenNextPoliceSprechwunsch() {
|
||||
|
||||
console.log('ADis_OpenNextPoliceSprechwunsch: start');
|
||||
ADisSettings().then((setting) => {
|
||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||
return ADisDB.ADisSprechwunschPolice.where({
|
||||
@@ -39,6 +43,7 @@ function ADis_OpenNextPoliceSprechwunsch() {
|
||||
}).then((Wunsch) => {
|
||||
if (Wunsch !== undefined) {
|
||||
Wunsch.each((myWunsch) => {
|
||||
console.log(myWunsch, typeof myWunsch);
|
||||
let MissionID = myWunsch.missionID;
|
||||
ADis_UpdatePoliceSprechwunschToDone(MissionID).then(() => {
|
||||
if ($("#adis-sprechwunsch-police-frame").attr("mission_id") == "empty") {
|
||||
|
||||
Reference in New Issue
Block a user