Browse Source

Fixed clicking on followed by @user link in suggestions.

master
Block Tester 11 years ago
parent
commit
fe5ad2177e
  1. 3
      css/style.css
  2. 4
      home.html
  3. 1
      twister_following.js

3
css/style.css

@ -624,7 +624,8 @@ button.disabled:hover
font-size: 13px; font-size: 13px;
cursor: pointer; cursor: pointer;
} }
.twister-user-name .twister-user-name,
.twister-by-user-name
{ {
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;

4
home.html

@ -174,7 +174,9 @@
<span class="twister-user-tag"></span> <span class="twister-user-tag"></span>
</a> </a>
<div class="followers">Followed by <div class="followers">Followed by
<span class="followed-by"></span> <a href="#" class="twister-by-user-name open-profile-modal">
<span class="followed-by"></span>
</a>
</div> </div>
<a class="twister-user-remove">&times;</a> <a class="twister-user-remove">&times;</a>
<button class="follow">Follow</button> <button class="follow">Follow</button>

1
twister_following.js

@ -332,6 +332,7 @@ function processSuggestion(arg, suggestion, followedBy) {
item.find(".twister-user-info").attr("data-screen-name", suggestion); item.find(".twister-user-info").attr("data-screen-name", suggestion);
item.find(".twister-user-name").attr("href", $.MAL.userUrl(suggestion)); item.find(".twister-user-name").attr("href", $.MAL.userUrl(suggestion));
item.find(".twister-by-user-name").attr("href", $.MAL.userUrl(followedBy));
item.find(".twister-user-tag").text("@" + suggestion); item.find(".twister-user-tag").text("@" + suggestion);
getAvatar(suggestion,item.find(".twister-user-photo")); getAvatar(suggestion,item.find(".twister-user-photo"));

Loading…
Cancel
Save