afa
This commit is contained in:
34
dist/autoloader.js
vendored
34
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Sat Nov 24 2018 16:01:15 GMT+0100 (CET)*/
|
/*Generated on:Sat Nov 24 2018 16:06:22 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();
|
||||||
@@ -6351,18 +6351,9 @@ ADisDB.on("ready", () => {
|
|||||||
function ADis_CollectRescueSprechwuensche() {
|
function ADis_CollectRescueSprechwuensche() {
|
||||||
ADisDB.ADisSprechwunsch.where({
|
ADisDB.ADisSprechwunsch.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).then((Wunsch) => {
|
}).each((myWunsch) => {
|
||||||
if (Wunsch !== undefined) {
|
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
||||||
return Wunsch.count(function (count) {
|
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
||||||
if (count > 0) {
|
|
||||||
return Wunsch.each((myWunsch) => {
|
|
||||||
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
|
||||||
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||||
@@ -6436,18 +6427,10 @@ ADisDB.on("ready", () => {
|
|||||||
function ADis_CollectPoliceSprechwuensche() {
|
function ADis_CollectPoliceSprechwuensche() {
|
||||||
ADisDB.ADisSprechwunschPolice.where({
|
ADisDB.ADisSprechwunschPolice.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).then((Wunsch) => {
|
}).each((myWunsch) => {
|
||||||
if (Wunsch !== undefined) {
|
if (!$("#mission_" + myWunsch.missionID).text().match(/Gefangene sollen abtransportiert werden/g)) {
|
||||||
return Wunsch.count(function (count) {
|
$("#mission_" + myWunsch.missionID).remove();
|
||||||
if (count > 0) {
|
return ADis_RemovePoliceSprechwunschFromQueue(myWunsch.missionID);
|
||||||
return Wunsch.each((myWunsch) => {
|
|
||||||
if (!$("#mission_" + myWunsch.missionID).text().match(/Gefangene sollen abtransportiert werden/g)) {
|
|
||||||
$("#mission_" + myWunsch.missionID).remove();
|
|
||||||
return ADis_RemovePoliceSprechwunschFromQueue(myWunsch.missionID);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
var MOIODOS = $('div#mission_list div.missionSideBarEntry:visible');
|
var MOIODOS = $('div#mission_list div.missionSideBarEntry:visible');
|
||||||
@@ -6470,6 +6453,7 @@ ADisDB.on("ready", () => {
|
|||||||
}).limit(1)
|
}).limit(1)
|
||||||
}
|
}
|
||||||
}).then((Wunsch) => {
|
}).then((Wunsch) => {
|
||||||
|
console.log(Wunsch, typeof Wunsch);
|
||||||
if (Wunsch !== undefined) {
|
if (Wunsch !== undefined) {
|
||||||
Wunsch.each((myWunsch) => {
|
Wunsch.each((myWunsch) => {
|
||||||
console.log(myWunsch, typeof myWunsch);
|
console.log(myWunsch, typeof myWunsch);
|
||||||
|
|||||||
2
dist/standalone.js
vendored
2
dist/standalone.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Sat Nov 24 2018 16:01:15 GMT+0100 (CET)*/
|
/*Generated on:Sat Nov 24 2018 16:06:22 GMT+0100 (CET)*/
|
||||||
function includesString(string1, string2) {
|
function includesString(string1, string2) {
|
||||||
return string1.toLowerCase().includes(string2.toLowerCase());
|
return string1.toLowerCase().includes(string2.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,18 +15,10 @@ $(document).ready(function () {
|
|||||||
function ADis_CollectPoliceSprechwuensche() {
|
function ADis_CollectPoliceSprechwuensche() {
|
||||||
ADisDB.ADisSprechwunschPolice.where({
|
ADisDB.ADisSprechwunschPolice.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).then((Wunsch) => {
|
}).each((myWunsch) => {
|
||||||
if (Wunsch !== undefined) {
|
if (!$("#mission_" + myWunsch.missionID).text().match(/Gefangene sollen abtransportiert werden/g)) {
|
||||||
return Wunsch.count(function (count) {
|
$("#mission_" + myWunsch.missionID).remove();
|
||||||
if (count > 0) {
|
return ADis_RemovePoliceSprechwunschFromQueue(myWunsch.missionID);
|
||||||
return Wunsch.each((myWunsch) => {
|
|
||||||
if (!$("#mission_" + myWunsch.missionID).text().match(/Gefangene sollen abtransportiert werden/g)) {
|
|
||||||
$("#mission_" + myWunsch.missionID).remove();
|
|
||||||
return ADis_RemovePoliceSprechwunschFromQueue(myWunsch.missionID);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
var MOIODOS = $('div#mission_list div.missionSideBarEntry:visible');
|
var MOIODOS = $('div#mission_list div.missionSideBarEntry:visible');
|
||||||
@@ -49,6 +41,7 @@ function ADis_OpenNextPoliceSprechwunsch() {
|
|||||||
}).limit(1)
|
}).limit(1)
|
||||||
}
|
}
|
||||||
}).then((Wunsch) => {
|
}).then((Wunsch) => {
|
||||||
|
console.log(Wunsch, typeof Wunsch);
|
||||||
if (Wunsch !== undefined) {
|
if (Wunsch !== undefined) {
|
||||||
Wunsch.each((myWunsch) => {
|
Wunsch.each((myWunsch) => {
|
||||||
console.log(myWunsch, typeof myWunsch);
|
console.log(myWunsch, typeof myWunsch);
|
||||||
|
|||||||
@@ -13,18 +13,9 @@ $(document).ready(function () {
|
|||||||
function ADis_CollectRescueSprechwuensche() {
|
function ADis_CollectRescueSprechwuensche() {
|
||||||
ADisDB.ADisSprechwunsch.where({
|
ADisDB.ADisSprechwunsch.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).then((Wunsch) => {
|
}).each((myWunsch) => {
|
||||||
if (Wunsch !== undefined) {
|
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
||||||
return Wunsch.count(function (count) {
|
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
||||||
if (count > 0) {
|
|
||||||
return Wunsch.each((myWunsch) => {
|
|
||||||
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
|
||||||
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user