v2 update 20aufio

This commit is contained in:
2018-12-02 22:13:01 +01:00
parent ac85767cd8
commit 236d4fb5de
3 changed files with 40 additions and 20 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Sun Dec 02 2018 22:03:16 GMT+0100 (CET)*/ /*Generated on:Sun Dec 02 2018 22:13:01 GMT+0100 (CET)*/
var AutomaticDispose_Branch = "master"; var AutomaticDispose_Branch = "master";
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
var da_lss_adis_time = new Date().getTime(); var da_lss_adis_time = new Date().getTime();
+13 -3
View File
@@ -1,4 +1,4 @@
/*Generated on:Sun Dec 02 2018 22:03:16 GMT+0100 (CET)*/ /*Generated on:Sun Dec 02 2018 22:13:01 GMT+0100 (CET)*/
/* /*
* Dexie.js - a minimalistic wrapper for IndexedDB * Dexie.js - a minimalistic wrapper for IndexedDB
* =============================================== * ===============================================
@@ -16960,6 +16960,7 @@ class AutomaticDispose {
self.MissionID = null self.MissionID = null
self.MyRunner = null self.MyRunner = null
self.MyRunnerSettings = null self.MyRunnerSettings = null
self.OweSecure = false
self._ADisVehiclesNeed = {} self._ADisVehiclesNeed = {}
self.MissionConfig = {} self.MissionConfig = {}
@@ -18443,6 +18444,9 @@ class AutomaticDispose {
}).then((Missions) => { }).then((Missions) => {
if (Missions.length > 0) { if (Missions.length > 0) {
var Mission = Missions[0]; var Mission = Missions[0];
if (self.MyRunner == 'os'){
self.OweSecure = true;
}
self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type); self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type);
} }
}); });
@@ -18499,8 +18503,14 @@ class AutomaticDispose {
.then(async () => { .then(async () => {
return await self.ProcessWaterRescue() return await self.ProcessWaterRescue()
}).then(() => { }).then(() => {
if (self.OweSecure) {
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').size() > 0) {
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
}
}
console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked')); console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked'));
if (['adis-ownmissions', 'adis-krankentransporte', 'adis-verbandmission'].indexOf(window.name) !== -1) {
console.log("WILL KLICK SEND") console.log("WILL KLICK SEND")
setTimeout(() => { setTimeout(() => {
@@ -18509,7 +18519,7 @@ class AutomaticDispose {
window.$('#mission_alarm_btn').click(); window.$('#mission_alarm_btn').click();
}); });
}, 250); }, 250);
}
}) })
}, 500); }, 500);
} }
+12 -2
View File
@@ -24,6 +24,7 @@ class AutomaticDispose {
self.MissionID = null self.MissionID = null
self.MyRunner = null self.MyRunner = null
self.MyRunnerSettings = null self.MyRunnerSettings = null
self.OweSecure = false
self._ADisVehiclesNeed = {} self._ADisVehiclesNeed = {}
self.MissionConfig = {} self.MissionConfig = {}
@@ -1273,6 +1274,9 @@ class AutomaticDispose {
}).then((Missions) => { }).then((Missions) => {
if (Missions.length > 0) { if (Missions.length > 0) {
var Mission = Missions[0]; var Mission = Missions[0];
if (self.MyRunner == 'os'){
self.OweSecure = true;
}
self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type); self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type);
} }
}); });
@@ -1329,8 +1333,14 @@ class AutomaticDispose {
.then(async () => { .then(async () => {
return await self.ProcessWaterRescue() return await self.ProcessWaterRescue()
}).then(() => { }).then(() => {
if (self.OweSecure) {
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').size() > 0) {
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
}
}
console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked')); console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked'));
if (['adis-ownmissions', 'adis-krankentransporte', 'adis-verbandmission'].indexOf(window.name) !== -1) {
console.log("WILL KLICK SEND") console.log("WILL KLICK SEND")
setTimeout(() => { setTimeout(() => {
@@ -1339,7 +1349,7 @@ class AutomaticDispose {
window.$('#mission_alarm_btn').click(); window.$('#mission_alarm_btn').click();
}); });
}, 250); }, 250);
}
}) })
}, 500); }, 500);
} }