This commit is contained in:
2018-11-24 15:52:49 +01:00
parent 81676e1060
commit bc6cf10e2b
3 changed files with 6 additions and 6 deletions

6
dist/autoloader.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Sat Nov 24 2018 15:46:39 GMT+0100 (CET)*/
/*Generated on:Sat Nov 24 2018 15:52:48 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();
@@ -6358,9 +6358,9 @@ ADisDB.on("ready", () => {
}).then(() => {
$("#building_list").find(".building_list_vehicle_element").each(function () {
var VehicleStatus = $(this).find(".building_list_fms").text();
// var VehicleType = $(this).find("a").attr("vehicle_type_id");
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
var VehicleID = $(this).attr("vehicle_id");
if (VehicleStatus == "5") {
if (VehicleStatus == "5" && [32,52].indexOf(VehicleType) === -1) {
ADis_AddRescueSprechwunschToQueue(VehicleID);
}
});

2
dist/standalone.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Sat Nov 24 2018 15:46:39 GMT+0100 (CET)*/
/*Generated on:Sat Nov 24 2018 15:52:48 GMT+0100 (CET)*/
function includesString(string1, string2) {
return string1.toLowerCase().includes(string2.toLowerCase());
}

View File

@@ -20,9 +20,9 @@ function ADis_CollectRescueSprechwuensche() {
}).then(() => {
$("#building_list").find(".building_list_vehicle_element").each(function () {
var VehicleStatus = $(this).find(".building_list_fms").text();
// var VehicleType = $(this).find("a").attr("vehicle_type_id");
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
var VehicleID = $(this).attr("vehicle_id");
if (VehicleStatus == "5") {
if (VehicleStatus == "5" && [32,52].indexOf(VehicleType) === -1) {
ADis_AddRescueSprechwunschToQueue(VehicleID);
}
});