diff --git a/dist/autoloader.js b/dist/autoloader.js index 6879b0c..41cdd9e 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Jan 19 2019 17:42:16 GMT+0100 (CET)*/ +/*Generated on:Mon Jan 21 2019 05:49:09 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(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index 7a9bbf8..5cabdd0 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Jan 19 2019 17:42:16 GMT+0100 (CET)*/ +/*Generated on:Mon Jan 21 2019 05:49:09 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -17358,7 +17358,8 @@ class AutomaticDispose { // - Sprechwunsch Handler Rettung // - if (window.location.pathname.indexOf("/vehicles/") !== -1 && window.name == 'adis-sprechwunsch-rescue') { - self.Check_Call_Hospitals(); + self.Check_Call_AB_Active(); // else + //self.Check_Call_Hospitals(); } // - @@ -17676,16 +17677,27 @@ class AutomaticDispose { Check_Call_Police_Active() { + let self = this; if ($('#h2_prisoners').length > 0) { - this.Collect_Jails(); + self.Collect_Jails(); } else { let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); // console.log('Check_Call_Police_Active', MissionID) - this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => { + self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => { tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`); }); } } + + Check_Call_AB_Active() { + let self = this; + if ($('#iframe-inside-container > h1').length > 0 && $("#iframe-inside-container > div.row > div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) { + $("#vehicle_show_table > tbody > tr > td:nth-child(1) > a:contains('Alarmieren')").first().click(); + } else { + + self.Check_Call_Hospitals(); + } + } // Gefängnis auswählen Collect_Jails() { @@ -19892,7 +19904,7 @@ $(document).ready(function () { if ($div.length && isShow) { var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { - console.log(mutation) + //console.log(mutation) if (mutation.attributeName === "style") { if ($(mutation.target).css('display') == 'none') { if (typeof ppppp != 'undefined') { diff --git a/server/missions/429.html b/server/missions/429.html index 320f9dd..6dea363 100644 --- a/server/missions/429.html +++ b/server/missions/429.html @@ -10,7 +10,7 @@