]> iEval git - plack-app-gruntmaster.git/commitdiff
Use div for login link
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 6 Feb 2015 15:13:22 +0000 (17:13 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 6 Feb 2015 15:16:15 +0000 (17:16 +0200)
(cherry picked from commit 9f46c75f61ae75dfe71912313e3bbd871623eb1c)

js/95-login.js
tmpl/skel.en

index a4e2d8296fef6951f4545609c89973ae3e305586..adbeb1dde858de945f47b0f97d8d08fd7065f623 100644 (file)
@@ -17,6 +17,6 @@
                }
                username = sessionStorage.getItem('login_username');
                if(username)
-                       $('#login').replaceWith('<span id="login">Probably logged in as ' + username + '</span>');
+                       $('#login').html('Probably logged in as ' + username);
        });
 })();
index f127bde66049e53c24e4963e1c6758695719a0b4..8637c06b7c15c986e4501b25789391100dc71b4a 100644 (file)
@@ -35,7 +35,7 @@
 
 <div id="content">Content goes here</div>
 
-<a href="/login" id="login" class="hidden">Log in</a>
+<div id="login" class="hidden"><a href="/login">Log in</a></div>
 
 <div id="tracker" class="hidden">
 <h1>Track user</h1>
This page took 0.020471 seconds and 4 git commands to generate.