removed adding of shown class

This commit is contained in:
Tom Hirschberger 2022-01-11 15:52:00 +01:00
parent 4ce42d4f70
commit b3dd531abb

View File

@ -245,7 +245,6 @@ const MM = (function () {
if (moduleWrapper !== null) { if (moduleWrapper !== null) {
moduleWrapper.style.transition = "opacity " + speed / 1000 + "s"; moduleWrapper.style.transition = "opacity " + speed / 1000 + "s";
moduleWrapper.style.opacity = 0; moduleWrapper.style.opacity = 0;
moduleWrapper.className = moduleWrapper.className.split(" shown").join("");
moduleWrapper.className += " hidden"; moduleWrapper.className += " hidden";
clearTimeout(module.showHideTimer); clearTimeout(module.showHideTimer);
@ -313,7 +312,6 @@ const MM = (function () {
// Restore the position. See hideModule() for more info. // Restore the position. See hideModule() for more info.
moduleWrapper.style.position = "static"; moduleWrapper.style.position = "static";
moduleWrapper.className = moduleWrapper.className.split(" hidden").join(""); moduleWrapper.className = moduleWrapper.className.split(" hidden").join("");
moduleWrapper.className += " shown";
updateWrapperStates(); updateWrapperStates();