Permalink
Browse files

Fixed duplicate ids in user box.

  • Loading branch information...
1 parent f6c247b commit 8c8ea80ead0a0c3aa7bc988d2f5f3885ed5c8a07 @jgm committed Mar 4, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 data/templates/getuser.st
  2. +1 −1 data/templates/userbox.st
@@ -1,7 +1,7 @@
<script type="text/javascript">
/* <![CDATA[ */
\$.get("$base$/_user", {}, function(username, status) {
- \$("#username").text(username);
+ \$("#logged_in_user").text(username);
if (username == "") { // nobody logged in
\$("#logoutlink").hide();
\$("#loginlink").show();
@@ -5,5 +5,5 @@
</noscript>
&nbsp;
<a id="loginlink" class="login" href="$base$/_login">Login / Get an account</a>
- <a id="logoutlink" class="login" href="$base$/_logout">Logout <span id="username"></span></a>
+ <a id="logoutlink" class="login" href="$base$/_logout">Logout <span id="logged_in_user"></span></a>
</div>

0 comments on commit 8c8ea80

Please sign in to comment.