loader.js: Wait for cols being painted prior adding class impact

Allows for the new loading effect's transition to play correctly
also for columns which get opened the first time.
This commit is contained in:
Johannes Meyer 2020-04-14 10:40:23 +02:00
parent cdd5004a25
commit 344598e845

@ -299,7 +299,11 @@
this.requests[id] = req;
}
if (! autorefresh) {
req.$target.addClass('impact');
setTimeout(function () {
// The column may have not been shown before. To make the transition
// delay working we have to wait for the column getting rendered
req.$target.addClass('impact');
}, 0);
}
this.icinga.ui.refreshDebug();
return req;