From b3e2b497ff7060e0d0eaecb35a32d83b39598d9c Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 18 Nov 2014 13:34:16 +0000 Subject: [PATCH] Only action if there and 0.5s after load Only input focus if we're not showing the trial screen, indicated by lack of $_GET param Only if trialBarRemaining is there should we adjust the bar length, now also done 0.5 after load --- lib/login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/login.php b/lib/login.php index 4d80caa..d50b146 100644 --- a/lib/login.php +++ b/lib/login.php @@ -18,7 +18,7 @@ echo $ICEcoder["password"] == "" && !$ICEcoder["multiUser"] ? "Setup" : "Login"; -.focus(); document.getElementById('trialBarRemaining').style.width = 'px';"> +if (document.getElementById('trialBarRemaining')) {setTimeout(function(){document.getElementById('trialBarRemaining').style.width = 'px';},500)}">
@@ -28,7 +28,7 @@ echo $ICEcoder["password"] == "" && !$ICEcoder["multiUser"] ? "Setup" : "Login";

-
days left ">Unlock now
+
days left - ">Unlock now