Restore code removed on Merges on 2017-03-17

This commit is contained in:
Rodrigo Ramírez Norambuena
2017-03-17 22:36:09 -03:00
parent b4dfce4a44
commit 0d3c03d1e3
8 changed files with 50 additions and 7 deletions

View File

@@ -245,10 +245,13 @@ var MM = (function() {
moduleWrapper.style.transition = "opacity " + speed / 1000 + "s";
// Restore the postition. See hideModule() for more info.
moduleWrapper.style.position = "static";
moduleWrapper.style.opacity = 1;
updateWrapperStates();
// Waiting for DOM-changes done in updateWrapperStates before we can start the animation.
var dummy = moduleWrapper.parentElement.parentElement.offsetHeight;
moduleWrapper.style.opacity = 1;
clearTimeout(module.showHideTimer);
module.showHideTimer = setTimeout(function() {
if (typeof callback === "function") { callback(); }