|
|
@ -47,7 +47,8 @@ var InterfaceFunctions = function() |
|
|
|
getFullname( defaultScreenName, $miniProfile.find(".mini-profile-name") ); |
|
|
|
getFullname( defaultScreenName, $miniProfile.find(".mini-profile-name") ); |
|
|
|
getAvatar( defaultScreenName, $miniProfile.find(".mini-profile-photo").find("img") ); |
|
|
|
getAvatar( defaultScreenName, $miniProfile.find(".mini-profile-photo").find("img") ); |
|
|
|
getPostsCount( defaultScreenName, $miniProfile.find(".posts-count") ); |
|
|
|
getPostsCount( defaultScreenName, $miniProfile.find(".posts-count") ); |
|
|
|
getFollowers( defaultScreenName, $miniProfile.find(".followers-count") ); |
|
|
|
|
|
|
|
|
|
|
|
updateFollowers(); |
|
|
|
|
|
|
|
|
|
|
|
loadFollowing( function(args) { |
|
|
|
loadFollowing( function(args) { |
|
|
|
$(".mini-profile .following-count").text(followingUsers.length-1); |
|
|
|
$(".mini-profile .following-count").text(followingUsers.length-1); |
|
|
@ -81,6 +82,13 @@ var InterfaceFunctions = function() |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function updateFollowers() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
getFollowers( defaultScreenName, $(".mini-profile .followers-count") ); |
|
|
|
|
|
|
|
// update followers every 10 minutes
|
|
|
|
|
|
|
|
setTimeout(updateFollowers, 10*60*1000); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function updateFollowSuggestion() |
|
|
|
function updateFollowSuggestion() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$('.follow-suggestions').empty(); |
|
|
|
$('.follow-suggestions').empty(); |
|
|
|