anons cant follow, hide follow button if not logged in

This commit is contained in:
Baris Soner Usakli
2013-07-23 17:19:19 -04:00
parent bf6a38904a
commit e7c9079449
2 changed files with 33 additions and 28 deletions

View File

@@ -13,8 +13,11 @@
var editLink = $('#editLink');
var followBtn = $('#follow-btn');
if( yourid !== theirid) {
if(yourid === "0") {
editLink.hide();
followBtn.hide();
}
else if(yourid !== theirid) {
editLink.hide();
if(isFollowing)
followBtn.hide();