This commit is contained in:
2018-11-24 16:09:53 +01:00
parent bbb78a7b0b
commit 6f9e7de603
3 changed files with 8 additions and 4 deletions

6
dist/autoloader.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Sat Nov 24 2018 16:07:35 GMT+0100 (CET)*/
/*Generated on:Sat Nov 24 2018 16:09:52 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();
@@ -6428,14 +6428,16 @@ ADisDB.on("ready", () => {
ADisDB.ADisSprechwunschPolice.where({
done: 'false'
}).each((myWunsch) => {
console.log('ADis_CollectPoliceSprechwuensche: remove');
if (!$("#mission_" + myWunsch.missionID).text().match(/Gefangene sollen abtransportiert werden/g)) {
$("#mission_" + myWunsch.missionID).remove();
return ADis_RemovePoliceSprechwunschFromQueue(myWunsch.missionID);
}
}).then(() => {
console.log('ADis_CollectPoliceSprechwuensche: add');
var MOIODOS = $('div#mission_list div.missionSideBarEntry:visible');
MOIODOS.each(function (index) {
if ($(this).text().match(/Gefangene sollen abtransportiert werden\./gmu)) {
if ($(this).text().match(/Gefangene sollen abtransportiert werden/g)) {
var MissionID = $(this).attr("mission_id");
ADis_AddPoliceSprechwunschToQueue(MissionID);
}

2
dist/standalone.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Sat Nov 24 2018 16:07:35 GMT+0100 (CET)*/
/*Generated on:Sat Nov 24 2018 16:09:52 GMT+0100 (CET)*/
function includesString(string1, string2) {
return string1.toLowerCase().includes(string2.toLowerCase());
}