diff --git a/dist/autoloader.js b/dist/autoloader.js index 7ba8541..a848d15 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Wed Nov 28 2018 21:18:58 GMT+0100 (CET)*/ +/*Generated on:Wed Nov 28 2018 21:22:19 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(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index c98d7c8..ca9dcd8 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Wed Nov 28 2018 21:18:58 GMT+0100 (CET)*/ +/*Generated on:Wed Nov 28 2018 21:22:19 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -4739,7 +4739,7 @@ class AutomaticDispose { if ($("h4:contains('Eigene Krankenhäuser')").length > 0 || $("h4:contains('Verbandskrankenhäuser')").length > 0) { this.Collect_Hospitals(); } else { - VehicleID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); + let VehicleID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); this.RemoveRescueSprechwunschFromQueue(VehicleID).then((deleteCount) => { $("#adis-sprechwunsch-rescue-frame").attr("src", ""); $("#adis-sprechwunsch-rescue-frame").attr("vehicle_id", "empty"); @@ -5082,7 +5082,7 @@ class AutomaticDispose { }); that.Jails.reverse(); - if (Jails.length > 0) { + if (that.Jails.length > 0) { this.Send_Vehicle_To_Jail() } else { $("#mission_vehicle_driving tbody, #mission_vehicle_at_mission tbody").find("tr").each(function () { diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 39a67d6..7999c21 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -264,7 +264,7 @@ class AutomaticDispose { if ($("h4:contains('Eigene Krankenhäuser')").length > 0 || $("h4:contains('Verbandskrankenhäuser')").length > 0) { this.Collect_Hospitals(); } else { - VehicleID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); + let VehicleID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); this.RemoveRescueSprechwunschFromQueue(VehicleID).then((deleteCount) => { $("#adis-sprechwunsch-rescue-frame").attr("src", ""); $("#adis-sprechwunsch-rescue-frame").attr("vehicle_id", "empty"); @@ -607,7 +607,7 @@ class AutomaticDispose { }); that.Jails.reverse(); - if (Jails.length > 0) { + if (that.Jails.length > 0) { this.Send_Vehicle_To_Jail() } else { $("#mission_vehicle_driving tbody, #mission_vehicle_at_mission tbody").find("tr").each(function () {