Skip to content

Commit

Permalink
use li for twitter login
Browse files Browse the repository at this point in the history
  • Loading branch information
johndbritton committed Jul 21, 2012
1 parent a644d58 commit 56753f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/pad.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</li>
</ul>
<ul id="menu_right">
<div id="login"></div>
<li id="login"></li>
<li id="settingslink" onClick="window.pad&amp;&amp;pad.editbarClick('settings');return false;">
<a class="buttonicon buttonicon-settings" id="settingslink" title="Settings of this pad"></a>
</li>
Expand Down Expand Up @@ -290,8 +290,9 @@ <h2 class="h2_unauth">No Authorization.</h2>
screenName = currentUser.data('screen_name');
profileImage = currentUser.data('profile_image_url');
profileImageTag = "<img style='height: 18px; width: 18px;' src='" + profileImage + "'/>";
$('#login').replaceWith("<li>" + profileImageTag + "</li>");
$('#login').replaceWith("profileImageTag");
} else {
$("#login").css("border", 0).css("padding", 0);
T("#login").connectButton({
authComplete: function(user) {
console.log(user);
Expand Down

0 comments on commit 56753f1

Please sign in to comment.