v2 update 20aufio
This commit is contained in:
Vendored
+1
-1
@@ -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();
|
||||||
|
|||||||
Vendored
+20
-10
@@ -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,17 +18503,23 @@ class AutomaticDispose {
|
|||||||
.then(async () => {
|
.then(async () => {
|
||||||
return await self.ProcessWaterRescue()
|
return await self.ProcessWaterRescue()
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
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")
|
|
||||||
setTimeout(() => {
|
|
||||||
|
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
if (self.OweSecure) {
|
||||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').size() > 0) {
|
||||||
window.$('#mission_alarm_btn').click();
|
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
|
||||||
});
|
}
|
||||||
}, 250);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||||
|
console.log("WILL KLICK SEND")
|
||||||
|
setTimeout(() => {
|
||||||
|
|
||||||
|
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||||
|
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
||||||
|
window.$('#mission_alarm_btn').click();
|
||||||
|
});
|
||||||
|
}, 250);
|
||||||
|
|
||||||
})
|
})
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|||||||
+19
-9
@@ -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,17 +1333,23 @@ class AutomaticDispose {
|
|||||||
.then(async () => {
|
.then(async () => {
|
||||||
return await self.ProcessWaterRescue()
|
return await self.ProcessWaterRescue()
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
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")
|
|
||||||
setTimeout(() => {
|
|
||||||
|
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
if (self.OweSecure) {
|
||||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').size() > 0) {
|
||||||
window.$('#mission_alarm_btn').click();
|
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
|
||||||
});
|
}
|
||||||
}, 250);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').size(), $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||||
|
console.log("WILL KLICK SEND")
|
||||||
|
setTimeout(() => {
|
||||||
|
|
||||||
|
self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||||
|
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},500);`);
|
||||||
|
window.$('#mission_alarm_btn').click();
|
||||||
|
});
|
||||||
|
}, 250);
|
||||||
|
|
||||||
})
|
})
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user