|
|
|
@ -388,7 +388,8 @@ function unfollow(user, cbFunc, cbArg) {
@@ -388,7 +388,8 @@ function unfollow(user, cbFunc, cbArg) {
|
|
|
|
|
if (i >= 0) { |
|
|
|
|
followingUsers.splice(i, 1); |
|
|
|
|
twisterFollowingO.update(user); |
|
|
|
|
$(window).trigger("eventUnfollow", user) |
|
|
|
|
// FIXME also need to check list of pending posts to remove from there
|
|
|
|
|
$(window).trigger('eventUnfollow', user); |
|
|
|
|
} |
|
|
|
|
delete _isFollowPublic[user]; |
|
|
|
|
saveFollowing(); |
|
|
|
@ -816,12 +817,12 @@ function initInterfaceFollowing() {
@@ -816,12 +817,12 @@ function initInterfaceFollowing() {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$(window) |
|
|
|
|
.on("eventFollow", function(e, user) { |
|
|
|
|
$(".following-count").text(followingUsers.length-1); |
|
|
|
|
.on('eventFollow', function(e, user) { |
|
|
|
|
$('.mini-profile .following-count').text(followingUsers.length - 1); |
|
|
|
|
showFollowingUsers(); |
|
|
|
|
}) |
|
|
|
|
.on("eventUnfollow", function(e, user) { |
|
|
|
|
$(".following-count").text(followingUsers.length-1); |
|
|
|
|
.on('eventUnfollow', function(e, user) { |
|
|
|
|
$('.mini-profile .following-count').text(followingUsers.length - 1); |
|
|
|
|
showFollowingUsers(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|