This commit is contained in:
2018-11-24 19:23:23 +01:00
parent adaf510861
commit ac18609a2e
3 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ $(document).ready(function () {
console.log("CurrentTime", CurrentTime);
if (MissionType !== null) {
if (includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") || $('#vehicle_show_table_all input[type="checkbox"]:checked').size() > 0) {
return ADis_MissionUpdateDone(MissionID);; // update Mission here as updated or full
return ADis_MissionUpdateDone(MissionID); // update Mission here as updated or full
}
setTimeout(function () {
if (['adis-ownmissions', 'adis-krankentransporte'].indexOf(window.name) != -1) {
@@ -111,7 +111,7 @@ function ADis_CheckMissionAutomatic() {
})
if (missionLoad != "ADisKrankentransport") {
coll = coll.and(function (item) {
return item.next_check < Math.floor(new Date().getTime() / 1000)
return item.next_check <= Math.floor(new Date().getTime() / 1000)
});
}
return coll.limit(1).toArray()