v2 uagf98oi
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Wed Dec 19 2018 16:08:19 GMT+0100 (CET)*/
|
/*Generated on:Wed Dec 19 2018 16:12:04 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
+13
-10
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Wed Dec 19 2018 16:08:19 GMT+0100 (CET)*/
|
/*Generated on:Wed Dec 19 2018 16:12:04 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -18487,6 +18487,9 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
WorkVerbandMission() {
|
WorkVerbandMission() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
const runnerID = self.ADisSettings.runner_iframesName.indexOf(window.name);
|
||||||
|
self.MyRunner = self.ADisSettings.runner[runnerID];
|
||||||
|
self.MyRunnerSettings = self.ADisSettings.runner_settings[runnerID];
|
||||||
self.ADSettings().then((setting) => {
|
self.ADSettings().then((setting) => {
|
||||||
var title = document.getElementById('missionH1');
|
var title = document.getElementById('missionH1');
|
||||||
var isVerband = title.innerText.toLowerCase().includes("[verband]");
|
var isVerband = title.innerText.toLowerCase().includes("[verband]");
|
||||||
@@ -18544,15 +18547,13 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
CheckMissionAutomatic() {
|
CheckMissionAutomatic() {
|
||||||
const self = this;
|
const self = this;
|
||||||
var setOpt;
|
|
||||||
if (window.name == 'adis-ownmissions' || window.name == 'adis-plannedevents') {
|
const runnerID = self.ADisSettings.runner_iframesName.indexOf(window.name);
|
||||||
setOpt = 'MissionsOwn-Automatic';
|
self.MyRunner = self.ADisSettings.runner[runnerID];
|
||||||
} else if (window.name == 'adis-krankentransporte') {
|
self.MyRunnerSettings = self.ADisSettings.runner_settings[runnerID];
|
||||||
setOpt = 'Krankentransport-Automatic';
|
if (self.MyRunnerSettings && self.MyRunner) {
|
||||||
}
|
self.ADSettings().then((setting) => {
|
||||||
if (setOpt && self.MyRunner) {
|
if (setting[self.MyRunnerSettings] === 'true') {
|
||||||
self.ADSettings().then((setting) => {
|
|
||||||
if (setting[setOpt] == 'true') {
|
|
||||||
let where = {
|
let where = {
|
||||||
missionID: self.MissionID,
|
missionID: self.MissionID,
|
||||||
runner: self.MyRunner,
|
runner: self.MyRunner,
|
||||||
@@ -18577,6 +18578,8 @@ class AutomaticDispose {
|
|||||||
tellParent(`console.log('config:1000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
tellParent(`console.log('config:1000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
tellParent(`console.log('config:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+12
-9
@@ -1246,6 +1246,9 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
WorkVerbandMission() {
|
WorkVerbandMission() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
const runnerID = self.ADisSettings.runner_iframesName.indexOf(window.name);
|
||||||
|
self.MyRunner = self.ADisSettings.runner[runnerID];
|
||||||
|
self.MyRunnerSettings = self.ADisSettings.runner_settings[runnerID];
|
||||||
self.ADSettings().then((setting) => {
|
self.ADSettings().then((setting) => {
|
||||||
var title = document.getElementById('missionH1');
|
var title = document.getElementById('missionH1');
|
||||||
var isVerband = title.innerText.toLowerCase().includes("[verband]");
|
var isVerband = title.innerText.toLowerCase().includes("[verband]");
|
||||||
@@ -1303,15 +1306,13 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
CheckMissionAutomatic() {
|
CheckMissionAutomatic() {
|
||||||
const self = this;
|
const self = this;
|
||||||
var setOpt;
|
|
||||||
if (window.name == 'adis-ownmissions' || window.name == 'adis-plannedevents') {
|
const runnerID = self.ADisSettings.runner_iframesName.indexOf(window.name);
|
||||||
setOpt = 'MissionsOwn-Automatic';
|
self.MyRunner = self.ADisSettings.runner[runnerID];
|
||||||
} else if (window.name == 'adis-krankentransporte') {
|
self.MyRunnerSettings = self.ADisSettings.runner_settings[runnerID];
|
||||||
setOpt = 'Krankentransport-Automatic';
|
if (self.MyRunnerSettings && self.MyRunner) {
|
||||||
}
|
self.ADSettings().then((setting) => {
|
||||||
if (setOpt && self.MyRunner) {
|
if (setting[self.MyRunnerSettings] === 'true') {
|
||||||
self.ADSettings().then((setting) => {
|
|
||||||
if (setting[setOpt] == 'true') {
|
|
||||||
let where = {
|
let where = {
|
||||||
missionID: self.MissionID,
|
missionID: self.MissionID,
|
||||||
runner: self.MyRunner,
|
runner: self.MyRunner,
|
||||||
@@ -1336,6 +1337,8 @@ class AutomaticDispose {
|
|||||||
tellParent(`console.log('config:1000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
tellParent(`console.log('config:1000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
tellParent(`console.log('config:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user