From 4018d25a7530ffff0a364da70f53458db909e834 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Fri, 20 Oct 2017 22:40:08 +0200 Subject: [PATCH] update login button when opening menu drawer, this should eliminate login issues --- js/ui.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.43.0