From: Robert Kaiser Date: Fri, 20 Oct 2017 20:40:08 +0000 (+0200) Subject: update login button when opening menu drawer, this should eliminate login issues X-Git-Tag: production~33 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=4018d25a7530ffff0a364da70f53458db909e834;p=lantea.git update login button when opening menu drawer, this should eliminate login issues --- diff --git a/js/ui.js b/js/ui.js index a3b7f35..f737507 100644 --- a/js/ui.js +++ b/js/ui.js @@ -32,7 +32,7 @@ window.onload = function() { mSel.add(opt, null); } - var areas = document.getElementsByClassName("overlayArea"); + var areas = document.getElementsByClassName("autoFade"); for (var i = 0; i <= areas.length - 1; i++) { areas[i].addEventListener("mouseup", uiEvHandler, false); areas[i].addEventListener("mousemove", uiEvHandler, false); @@ -260,7 +260,7 @@ function initDB(aEvent) { function showUI() { if (gUIHideCountdown <= 0) { - var areas = document.getElementsByClassName('overlayArea'); + var areas = document.getElementsByClassName('autoFade'); for (var i = 0; i <= areas.length - 1; i++) { areas[i].classList.remove("hidden"); } @@ -272,7 +272,7 @@ function showUI() { function maybeHideUI() { gUIHideCountdown--; if (gUIHideCountdown <= 0) { - var areas = document.getElementsByClassName('overlayArea'); + var areas = document.getElementsByClassName('autoFade'); for (var i = 0; i <= areas.length - 1; i++) { areas[i].classList.add("hidden"); } @@ -295,6 +295,7 @@ function updateTrackInfo() { function toggleTrackArea() { var fs = document.getElementById("trackArea"); if (fs.classList.contains("hidden")) { + prepareLoginButton(); fs.classList.remove("hidden"); showUI(); gTrackUpdateInterval = setInterval(updateTrackInfo, 1000);