avpo
This commit is contained in:
16
dist/autoloader.js
vendored
16
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Sat Nov 24 2018 16:39:05 GMT+0100 (CET)*/
|
/*Generated on:Sat Nov 24 2018 16:41:33 GMT+0100 (CET)*/
|
||||||
var AutomaticDispose_Branch = "master";
|
var AutomaticDispose_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
var da_lss_adis_time = new Date().getTime();
|
||||||
@@ -6449,16 +6449,20 @@ ADisDB.on("ready", () => {
|
|||||||
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).then(()=>{
|
}).then(() => {
|
||||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||||
var VehicleStatus = $(this).find(".building_list_fms").text();
|
var VehicleStatus = $(this).find(".building_list_fms").text();
|
||||||
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
||||||
var VehicleID = $(this).attr("vehicle_id");
|
var VehicleID = $(this).attr("vehicle_id");
|
||||||
if (VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) {
|
if (VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) {
|
||||||
var _meap = String($('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")').attr('href'));
|
var map2 = $('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")');
|
||||||
var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1);
|
if (map2.length > 0) {
|
||||||
console.log(_meap, MissionID);
|
var _meap = String(map2.attr('href'));
|
||||||
//ADis_AddPoliceSprechwunschToQueue(MissionID);
|
var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1);
|
||||||
|
if (MissionID) {
|
||||||
|
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
2
dist/standalone.js
vendored
2
dist/standalone.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Sat Nov 24 2018 16:39:05 GMT+0100 (CET)*/
|
/*Generated on:Sat Nov 24 2018 16:41:33 GMT+0100 (CET)*/
|
||||||
function includesString(string1, string2) {
|
function includesString(string1, string2) {
|
||||||
return string1.toLowerCase().includes(string2.toLowerCase());
|
return string1.toLowerCase().includes(string2.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,16 +33,20 @@ function ADis_CollectPoliceSprechwuensche() {
|
|||||||
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).then(()=>{
|
}).then(() => {
|
||||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||||
var VehicleStatus = $(this).find(".building_list_fms").text();
|
var VehicleStatus = $(this).find(".building_list_fms").text();
|
||||||
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
||||||
var VehicleID = $(this).attr("vehicle_id");
|
var VehicleID = $(this).attr("vehicle_id");
|
||||||
if (VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) {
|
if (VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) {
|
||||||
var _meap = String($('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")').attr('href'));
|
var map2 = $('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' a:contains("Zum Einsatz")');
|
||||||
var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1);
|
if (map2.length > 0) {
|
||||||
console.log(_meap, MissionID);
|
var _meap = String(map2.attr('href'));
|
||||||
//ADis_AddPoliceSprechwunschToQueue(MissionID);
|
var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1);
|
||||||
|
if (MissionID) {
|
||||||
|
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user