ab container

This commit is contained in:
2019-01-21 06:15:00 +01:00
parent 61f52956eb
commit 78c58330c7
3 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Jan 21 2019 06:07:03 GMT+0100 (CET)*/
/*Generated on:Mon Jan 21 2019 06:15: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();
+4 -5
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Jan 21 2019 06:07:03 GMT+0100 (CET)*/
/*Generated on:Mon Jan 21 2019 06:15:00 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -17691,11 +17691,10 @@ class AutomaticDispose {
Check_Call_AB_Active() {
let self = this;
console.log($("a:contains('Alarmieren')").length)
console.log($("h1:contains('AB-')").length)
console.log($("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length)
if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
$("a:contains('Alarmieren')").first().click();
let href = $("a:contains('Alarmieren')").first().attr("href");
console.log(href)
document.location.href = document.location.origin + href;
} else {
self.Check_Call_Hospitals();
}