be secure dont police sprechwunsh in verband

This commit is contained in:
2019-02-19 01:15:21 +01:00
parent 3e8e0062ec
commit 5ebcd15558
3 changed files with 14 additions and 4 deletions

View File

@@ -632,7 +632,7 @@
Check_Call_Police_Active() {
let self = this;
if (($('#h2_prisoners').length > 0 || $('img.patientPrisonerIcon').length > 0) /*&& !self.includesString($('#missionH1').text(),'[verband]')*/ ) {
if (($('#h2_prisoners').length > 0 || $('img.patientPrisonerIcon').length > 0) && !self.includesString($('#missionH1').text(),'[verband]') ) {
//TODO: check if Verband or Event and
// Maybe done with //__FIXX__20192
self.Collect_Jails();
@@ -844,6 +844,11 @@
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);`);
});
}
} else {
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);