From 6f9e7de6039c9b7471b20f305abd942c11e65d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Sat, 24 Nov 2018 16:09:53 +0100 Subject: [PATCH] =?UTF-8?q?pwfa=C3=B6m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/autoloader.js | 6 ++++-- dist/standalone.js | 2 +- script/sprechwunsch/police-opener.js | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index d96439a..79d43de 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -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); } diff --git a/dist/standalone.js b/dist/standalone.js index facd79a..967a944 100644 --- a/dist/standalone.js +++ b/dist/standalone.js @@ -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()); } diff --git a/script/sprechwunsch/police-opener.js b/script/sprechwunsch/police-opener.js index fdc56b3..7620fe9 100755 --- a/script/sprechwunsch/police-opener.js +++ b/script/sprechwunsch/police-opener.js @@ -16,14 +16,16 @@ function ADis_CollectPoliceSprechwuensche() { 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); }