v1.18.x
barisusakli 11 years ago
parent d74de798fc
commit b6e0a2ecce

@ -43,7 +43,7 @@ define(['forum/account/header'], function(header) {
} }
function updateButtons() { function updateButtons() {
var isSelfOrNotLoggedIn = yourid === theirid || yourid === '0'; var isSelfOrNotLoggedIn = yourid === theirid || parseInt(yourid, 10) === 0;
$('#follow-btn').toggleClass('hide', isFollowing || isSelfOrNotLoggedIn); $('#follow-btn').toggleClass('hide', isFollowing || isSelfOrNotLoggedIn);
$('#unfollow-btn').toggleClass('hide', !isFollowing || isSelfOrNotLoggedIn); $('#unfollow-btn').toggleClass('hide', !isFollowing || isSelfOrNotLoggedIn);
$('#chat-btn').toggleClass('hide', isSelfOrNotLoggedIn); $('#chat-btn').toggleClass('hide', isSelfOrNotLoggedIn);

Loading…
Cancel
Save