This commit is contained in:
2018-12-19 18:28:19 +01:00
parent 36ddb429fa
commit 03acece31b
3 changed files with 72 additions and 24 deletions

View File

@@ -2397,4 +2397,28 @@ class AutomaticDispose {
}
window.AutomaticDisposeCall = new AutomaticDispose();
$(document).ready(function () {
var $div = $("a:contains('Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden!')");
var isShow = $div.is(':hidden');
//console.log($div, isShow);
if ($div.length && isShow && 1 == 0) {
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.attributeName === "style") {
setTimeout(function () {
window.AutomaticDisposeCall = new AutomaticDispose();
}, 1500);
}
});
});
observer.observe($div[0], {
attributes: true
});
$div.click();
} else {
setTimeout(function () {
window.AutomaticDisposeCall = new AutomaticDispose();
}, 500);
}
});