From 147791dbcd121d84b51edbe430859b032c1c419c Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Thu, 31 Mar 2016 22:34:39 +0200 Subject: [PATCH] Hide module after fade out. --- js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/main.js b/js/main.js index fb1411e9..0a63f5e2 100644 --- a/js/main.js +++ b/js/main.js @@ -167,6 +167,7 @@ var MM = (function() { moduleWrapper.style.opacity = 0; setTimeout(function() { + moduleWrapper.style.display = 'none'; if (typeof callback === 'function') { callback(); } }, speed); } @@ -184,6 +185,7 @@ var MM = (function() { if (moduleWrapper !== null) { moduleWrapper.style.transition = "opacity " + speed / 1000 + "s"; moduleWrapper.style.opacity = 1; + moduleWrapper.style.display = 'block'; setTimeout(function() { if (typeof callback === 'function') { callback(); }