afa
This commit is contained in:
@@ -13,18 +13,9 @@ $(document).ready(function () {
|
||||
function ADis_CollectRescueSprechwuensche() {
|
||||
ADisDB.ADisSprechwunsch.where({
|
||||
done: 'false'
|
||||
}).then((Wunsch) => {
|
||||
if (Wunsch !== undefined) {
|
||||
return Wunsch.count(function (count) {
|
||||
if (count > 0) {
|
||||
return Wunsch.each((myWunsch) => {
|
||||
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
||||
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
}).each((myWunsch) => {
|
||||
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
||||
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
||||
}
|
||||
}).then(() => {
|
||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||
|
||||
Reference in New Issue
Block a user