]> iEval git - gruntmaster-page.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:13:22 +0000 (17:13 +0200)
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 c4a86ef90a15e3f9a51eea6851e55f553fd85ddb..00e498175acceb366bb41b595ac20d048801bb4e 100644 (file)
@@ -36,7 +36,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.028862 seconds and 4 git commands to generate.