Fixed clicking on followed by @user link in suggestions.

This commit is contained in:
Block Tester 2014-01-16 02:21:49 +00:00
parent 3136367fb2
commit fe5ad2177e
3 changed files with 6 additions and 2 deletions

View File

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

View File

@ -174,7 +174,9 @@
<span class="twister-user-tag"></span>
</a>
<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>
<a class="twister-user-remove">&times;</a>
<button class="follow">Follow</button>

View File

@ -332,6 +332,7 @@ function processSuggestion(arg, suggestion, followedBy) {
item.find(".twister-user-info").attr("data-screen-name", 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);
getAvatar(suggestion,item.find(".twister-user-photo"));