diff --git a/dist/autoloader.js b/dist/autoloader.js index e011a29..95ca4c1 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 16:37:32 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 16:39:05 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(); @@ -6455,8 +6455,8 @@ ADisDB.on("ready", () => { var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id"))); var VehicleID = $(this).attr("vehicle_id"); if (VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) { - var _meap = $('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")').attr('href'); - var MissionID = _meap[0].substr(_meap[0].lastIndexOf("/") + 1); + var _meap = String($('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")').attr('href')); + var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1); console.log(_meap, MissionID); //ADis_AddPoliceSprechwunschToQueue(MissionID); } diff --git a/dist/standalone.js b/dist/standalone.js index cd377e6..e8432a9 100644 --- a/dist/standalone.js +++ b/dist/standalone.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 16:37:32 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 16:39:05 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 944debf..0c7715e 100755 --- a/script/sprechwunsch/police-opener.js +++ b/script/sprechwunsch/police-opener.js @@ -39,8 +39,8 @@ function ADis_CollectPoliceSprechwuensche() { var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id"))); var VehicleID = $(this).attr("vehicle_id"); if (VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) { - var _meap = $('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")').attr('href'); - var MissionID = _meap[0].substr(_meap[0].lastIndexOf("/") + 1); + var _meap = String($('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")').attr('href')); + var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1); console.log(_meap, MissionID); //ADis_AddPoliceSprechwunschToQueue(MissionID); }