From 961fa43bad223275ce9edf3be4fbda4fe4db69d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Fri, 11 Jan 2019 02:59:00 +0100 Subject: [PATCH] test v398 --- dist/autoloader.js | 2 +- dist/autoloaderV2.js | 25 +++++++++++++++---------- src/autoloaderV2.js | 23 ++++++++++++++--------- 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index a90acdc..f12113f 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Fri Jan 11 2019 02:46:47 GMT+0100 (CET)*/ +/*Generated on:Fri Jan 11 2019 02:59:00 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 230506f..bcbdae8 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Fri Jan 11 2019 02:46:47 GMT+0100 (CET)*/ +/*Generated on:Fri Jan 11 2019 02:59:00 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -18784,7 +18784,12 @@ class AutomaticDispose { self.UpdateMissionsToDone(self.MissionID).then(() => { tellParent(`console.log('ok:${window.name}:${self.MissionID}');`); if ($('#vehicle_show_table_all input[type="checkbox"]:checked').length == 0) { - tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + if (window.name == 'adis-krankentransporte') { + $('#aao_2753841').click(); + window.$('#mission_alarm_btn').click(); + } else { + tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + } } else { window.$('#mission_alarm_btn').click(); //window.console.log("WILL KLICK SEND3", self.MissionID, window.name) @@ -18833,9 +18838,8 @@ class AutomaticDispose { CollectInvolvedVehicles() { let self = this; $("#mission_vehicle_driving tbody").find("tr").each(function (_, elem) { - var f = $(elem).find("a").first() - var attr = f.attr("href") - if (typeof attr !== 'undefined' && attr !== false) { + try { + var f = $(elem).find("a").first() var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1); var VehicleName = f.text(); var VehicleType = f.attr("vehicle_type_id"); @@ -18845,13 +18849,13 @@ class AutomaticDispose { "name": VehicleName, "type": VehicleType } - } + + } catch (e) {} }); $("#mission_vehicle_at_mission tbody").find("tr").each(function (_, elem) { - var f = $(elem).find("a").first() - var attr = f.attr("href") - if (typeof attr !== 'undefined' && attr !== false) { + try { + var f = $(elem).find("a").first() var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1); var VehicleName = f.text(); var VehicleType = f.attr("vehicle_type_id"); @@ -18861,7 +18865,8 @@ class AutomaticDispose { "name": VehicleName, "type": VehicleType } - } + + } catch (e) {} }); return self.Vehicles; diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 511112f..c2b214b 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1430,7 +1430,12 @@ class AutomaticDispose { self.UpdateMissionsToDone(self.MissionID).then(() => { tellParent(`console.log('ok:${window.name}:${self.MissionID}');`); if ($('#vehicle_show_table_all input[type="checkbox"]:checked').length == 0) { - tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + if (window.name == 'adis-krankentransporte') { + $('#aao_2753841').click(); + window.$('#mission_alarm_btn').click(); + } else { + tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + } } else { window.$('#mission_alarm_btn').click(); //window.console.log("WILL KLICK SEND3", self.MissionID, window.name) @@ -1479,9 +1484,8 @@ class AutomaticDispose { CollectInvolvedVehicles() { let self = this; $("#mission_vehicle_driving tbody").find("tr").each(function (_, elem) { - var f = $(elem).find("a").first() - var attr = f.attr("href") - if (typeof attr !== 'undefined' && attr !== false) { + try { + var f = $(elem).find("a").first() var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1); var VehicleName = f.text(); var VehicleType = f.attr("vehicle_type_id"); @@ -1491,13 +1495,13 @@ class AutomaticDispose { "name": VehicleName, "type": VehicleType } - } + + } catch (e) {} }); $("#mission_vehicle_at_mission tbody").find("tr").each(function (_, elem) { - var f = $(elem).find("a").first() - var attr = f.attr("href") - if (typeof attr !== 'undefined' && attr !== false) { + try { + var f = $(elem).find("a").first() var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1); var VehicleName = f.text(); var VehicleType = f.attr("vehicle_type_id"); @@ -1507,7 +1511,8 @@ class AutomaticDispose { "name": VehicleName, "type": VehicleType } - } + + } catch (e) {} }); return self.Vehicles;