v291832943

This commit is contained in:
2019-01-11 02:21:49 +01:00
parent 3fb4e06c7f
commit 06ab23bdca
3 changed files with 28 additions and 18 deletions

View File

@@ -2408,6 +2408,7 @@ class AutomaticDispose {
$(document).ready(function () {
var $div = $("a:contains('Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden!')");
var isShow = $div.is(':hidden');
var ppppp = undefined;
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
console.log($div, isShow, MissionID);
if ($div.length && isShow) {
@@ -2416,19 +2417,23 @@ $(document).ready(function () {
console.log(mutation.type, MissionID);
console.table(mutation, MissionID);
if (mutation.attributeName === "style") {
setTimeout(function () {
if (typeof ppppp != 'undefined'){
clearTimeout(ppppp);
}
ppppp = setTimeout(function () {
window.AutomaticDisposeCall = new AutomaticDispose();
}, 1500);
}
});
});
observer.observe($div[0], {
attributes: true,
characterData: true,
attributeOldValue: true,
characterDataOldValue: true
});
$div.each(function(index,item){
observer.observe(item, {
attributes: true,
characterData: true,
attributeOldValue: true,
characterDataOldValue: true
});
})
$div.click();
} else {
window.AutomaticDisposeCall = new AutomaticDispose();