ab container
This commit is contained in:
@@ -485,11 +485,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user