diff --git a/dist/autoloader.js b/dist/autoloader.js index cb09115..6298c6f 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Wed Nov 28 2018 21:23:53 GMT+0100 (CET)*/ +/*Generated on:Wed Nov 28 2018 21:26: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(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index 24edb42..c88f437 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Wed Nov 28 2018 21:23:53 GMT+0100 (CET)*/ +/*Generated on:Wed Nov 28 2018 21:26:52 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -4612,7 +4612,6 @@ class AutomaticDispose { } }); - console.log('nonstatic', this.ADisSettings) } get Settings() { @@ -4666,14 +4665,12 @@ class AutomaticDispose { await that.ADisDB.ADisSprechwunsch.where({ done: 'false' }).each((myWunsch) => { - console.log('that.CollectRescueSprechwuensche: remove', myWunsch); if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") { that.RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID); } }) return resolve(); }).then(() => { - console.log('that.CollectRescueSprechwuensche: add') $("#building_list").find(".building_list_vehicle_element").each(function () { var VehicleStatus = $(this).find(".building_list_fms").text(); var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id"))); @@ -4687,19 +4684,15 @@ class AutomaticDispose { OpenNextRescueSprechwunsch() { let that = this; - console.log('OpenNextRescueSprechwunsch on'); this.ADSettings().then((setting) => { - console.log('OpenNextRescueSprechwunsch', setting); if (setting['Sprechwunsch-Automatic'] == 'true') { return that.ADisDB.ADisSprechwunsch.where({ done: 'false' }).limit(1) } }).then((Wunsch) => { - console.log('OpenNextRescueSprechwunsch', Wunsch); if (Wunsch !== undefined) { Wunsch.each((myWunsch) => { - console.table(myWunsch); let VehicleID = myWunsch.vehicleID; that.UpdateRescueSprechwunschToDone(VehicleID).then(() => { if ($("#adis-sprechwunsch-rescue-frame").attr("vehicle_id") == "empty") { @@ -4917,7 +4910,6 @@ class AutomaticDispose { } UpdatePoliceSprechwunschToDone(WunschID) { - console.log(WunschID, typeof WunschID); return this.ADisDB.ADisSprechwunschPolice.add({ missionID: WunschID, done: 'true' @@ -5347,19 +5339,16 @@ class AutomaticDispose { $("#adis-setting-krankentransport-automatic").click(function () { var tf = $(this).hasClass("active"); - console.log(tf); that.ADisDB.ADisSettings.put({ name: "Krankentransport-Automatic", value: !tf ? 'true' : 'false' }).then((res) => { - console.log(res); that.UIUpdateSettings(); }); }); $("#adis-setting-full-automatic").click(function () { var tf = $(this).hasClass("active"); - console.log(tf); that.ADisDB.ADisSettings.put({ name: "MissionsOwn-Automatic", value: !tf ? 'true' : 'false' @@ -5370,7 +5359,6 @@ class AutomaticDispose { $("#adis-setting-sprechwunsch-automatic").click(function () { var tf = $(this).hasClass("active"); - console.log(tf); that.ADisDB.ADisSettings.put({ name: "Sprechwunsch-Automatic", value: !tf ? 'true' : 'false' diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index be32632..54dafd0 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -137,7 +137,6 @@ class AutomaticDispose { } }); - console.log('nonstatic', this.ADisSettings) } get Settings() { @@ -191,14 +190,12 @@ class AutomaticDispose { await that.ADisDB.ADisSprechwunsch.where({ done: 'false' }).each((myWunsch) => { - console.log('that.CollectRescueSprechwuensche: remove', myWunsch); if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") { that.RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID); } }) return resolve(); }).then(() => { - console.log('that.CollectRescueSprechwuensche: add') $("#building_list").find(".building_list_vehicle_element").each(function () { var VehicleStatus = $(this).find(".building_list_fms").text(); var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id"))); @@ -212,19 +209,15 @@ class AutomaticDispose { OpenNextRescueSprechwunsch() { let that = this; - console.log('OpenNextRescueSprechwunsch on'); this.ADSettings().then((setting) => { - console.log('OpenNextRescueSprechwunsch', setting); if (setting['Sprechwunsch-Automatic'] == 'true') { return that.ADisDB.ADisSprechwunsch.where({ done: 'false' }).limit(1) } }).then((Wunsch) => { - console.log('OpenNextRescueSprechwunsch', Wunsch); if (Wunsch !== undefined) { Wunsch.each((myWunsch) => { - console.table(myWunsch); let VehicleID = myWunsch.vehicleID; that.UpdateRescueSprechwunschToDone(VehicleID).then(() => { if ($("#adis-sprechwunsch-rescue-frame").attr("vehicle_id") == "empty") { @@ -442,7 +435,6 @@ class AutomaticDispose { } UpdatePoliceSprechwunschToDone(WunschID) { - console.log(WunschID, typeof WunschID); return this.ADisDB.ADisSprechwunschPolice.add({ missionID: WunschID, done: 'true' @@ -692,19 +684,16 @@ class AutomaticDispose { $("#adis-setting-krankentransport-automatic").click(function () { var tf = $(this).hasClass("active"); - console.log(tf); that.ADisDB.ADisSettings.put({ name: "Krankentransport-Automatic", value: !tf ? 'true' : 'false' }).then((res) => { - console.log(res); that.UIUpdateSettings(); }); }); $("#adis-setting-full-automatic").click(function () { var tf = $(this).hasClass("active"); - console.log(tf); that.ADisDB.ADisSettings.put({ name: "MissionsOwn-Automatic", value: !tf ? 'true' : 'false' @@ -715,7 +704,6 @@ class AutomaticDispose { $("#adis-setting-sprechwunsch-automatic").click(function () { var tf = $(this).hasClass("active"); - console.log(tf); that.ADisDB.ADisSettings.put({ name: "Sprechwunsch-Automatic", value: !tf ? 'true' : 'false'