diff --git a/dist/autoloader.js b/dist/autoloader.js index 342e6f7..da51dd7 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 19:21:08 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 19:23:22 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(); @@ -5211,7 +5211,7 @@ ADisDB.on("ready", () => { console.log("CurrentTime", CurrentTime); if (MissionType !== null) { if (includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") || $('#vehicle_show_table_all input[type="checkbox"]:checked').size() > 0) { - return ADis_MissionUpdateDone(MissionID);; // update Mission here as updated or full + return ADis_MissionUpdateDone(MissionID); // update Mission here as updated or full } setTimeout(function () { if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) { @@ -5308,7 +5308,7 @@ ADisDB.on("ready", () => { }) if (missionLoad != "ADisKrankentransport") { coll = coll.and(function (item) { - return item.next_check < Math.floor(new Date().getTime() / 1000) + return item.next_check <= Math.floor(new Date().getTime() / 1000) }); } return coll.limit(1).toArray() diff --git a/dist/standalone.js b/dist/standalone.js index 935470d..521f7fe 100644 --- a/dist/standalone.js +++ b/dist/standalone.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 19:21:08 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 19:23:22 GMT+0100 (CET)*/ function includesString(string1, string2) { return string1.toLowerCase().includes(string2.toLowerCase()); } diff --git a/script/mission/handler.js b/script/mission/handler.js index 46d5116..c3508c8 100755 --- a/script/mission/handler.js +++ b/script/mission/handler.js @@ -14,7 +14,7 @@ $(document).ready(function () { console.log("CurrentTime", CurrentTime); if (MissionType !== null) { if (includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") || $('#vehicle_show_table_all input[type="checkbox"]:checked').size() > 0) { - return ADis_MissionUpdateDone(MissionID);; // update Mission here as updated or full + return ADis_MissionUpdateDone(MissionID); // update Mission here as updated or full } setTimeout(function () { if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) { @@ -111,7 +111,7 @@ function ADis_CheckMissionAutomatic() { }) if (missionLoad != "ADisKrankentransport") { coll = coll.and(function (item) { - return item.next_check < Math.floor(new Date().getTime() / 1000) + return item.next_check <= Math.floor(new Date().getTime() / 1000) }); } return coll.limit(1).toArray()