fix loop... police cars send to verband mission

This commit is contained in:
2019-02-19 00:47:20 +01:00
parent c1602189ac
commit 0edf21fa24
3 changed files with 62 additions and 44 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Tue Feb 19 2019 00:29:30 GMT+0100 (CET)*/
/*Generated on:Tue Feb 19 2019 00:47:18 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();
+10 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Tue Feb 19 2019 00:29:30 GMT+0100 (CET)*/
/*Generated on:Tue Feb 19 2019 00:47:18 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -18462,6 +18462,7 @@
let self = this;
self.Jails = [];
var CountGefangene = Number(parseInt($('#h2_prisoners').text()));
let ImThere = $('#mission_vehicle_at_mission tr > td:nth-child(5) > a:contains("Jomaar"),#mission_vehicle_driving tr > td:nth-child(7) > a:contains("Jomaar")').length;
var parentNode = $('#mission_vehicle_at_mission tr > td:nth-child(5) > a:contains("Jomaar")').parent().parent();
var GefKw = parentNode.find('td:nth-child(2) > a[vehicle_type_id="52"]');
var FuStW = parentNode.find('td:nth-child(2) > a[vehicle_type_id="32"]');
@@ -18622,6 +18623,7 @@
//__FIXX__20192
});
if (ImThere > 0) {
if ($('#vehicle_show_table_all tr[vehicle_type="GefKw"] input[type="checkbox"]').length > 0 && CountGefangene >= 5) {
$('#vehicle_show_table_all tr[vehicle_type="GefKw"] input[type="checkbox"]').each((_, elem) => {
if (CountGefangene > 0) {
@@ -18638,9 +18640,16 @@
}
});
}
if ($('#vehicle_show_table_all input[type="checkbox"]:checked').length > 0) {
$('#mission_alarm_btn').click();
}
} else {
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},500);`);
});
}
}
}
+9
View File
@@ -663,6 +663,7 @@
let self = this;
self.Jails = [];
var CountGefangene = Number(parseInt($('#h2_prisoners').text()));
let ImThere = $('#mission_vehicle_at_mission tr > td:nth-child(5) > a:contains("Jomaar"),#mission_vehicle_driving tr > td:nth-child(7) > a:contains("Jomaar")').length;
var parentNode = $('#mission_vehicle_at_mission tr > td:nth-child(5) > a:contains("Jomaar")').parent().parent();
var GefKw = parentNode.find('td:nth-child(2) > a[vehicle_type_id="52"]');
var FuStW = parentNode.find('td:nth-child(2) > a[vehicle_type_id="32"]');
@@ -823,6 +824,7 @@
//__FIXX__20192
});
if (ImThere > 0) {
if ($('#vehicle_show_table_all tr[vehicle_type="GefKw"] input[type="checkbox"]').length > 0 && CountGefangene >= 5) {
$('#vehicle_show_table_all tr[vehicle_type="GefKw"] input[type="checkbox"]').each((_, elem) => {
if (CountGefangene > 0) {
@@ -839,9 +841,16 @@
}
});
}
if ($('#vehicle_show_table_all input[type="checkbox"]:checked').length > 0) {
$('#mission_alarm_btn').click();
}
} else {
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},500);`);
});
}
}
}