|
|
@ -98,16 +98,17 @@ var InterfaceFunctions = function() { |
|
|
|
}, {cbFunc:cbFunc, cbArg:cbArg}); |
|
|
|
}, {cbFunc:cbFunc, cbArg:cbArg}); |
|
|
|
|
|
|
|
|
|
|
|
$(window) |
|
|
|
$(window) |
|
|
|
.on("eventFollow", function(e, user) { |
|
|
|
.on('eventFollow', function(e, user) { |
|
|
|
$(".following-count").text(followingUsers.length-1); |
|
|
|
$('.mini-profile .following-count').text(followingUsers.length - 1); |
|
|
|
setTimeout(requestTimelineUpdate, 1000, 'latest', postsPerRefresh, [user], promotedPostsOnly); |
|
|
|
setTimeout(requestTimelineUpdate, 1000, 'latest', postsPerRefresh, [user], promotedPostsOnly); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.on("eventUnfollow", function(e, user) { |
|
|
|
.on('eventUnfollow', function(e, user) { |
|
|
|
$(".following-count").text(followingUsers.length-1); |
|
|
|
$('.mini-profile .following-count').text(followingUsers.length - 1); |
|
|
|
$('.wrapper .postboard .post').each( function() { |
|
|
|
$('.wrapper .postboard .post').each( function() { |
|
|
|
if (($(this).find('[data-screen-name="'+user+'"]').length && !$(this).find(".post-retransmited-by").text()) |
|
|
|
var elem = $(this); |
|
|
|
|| $(this).find(".post-retransmited-by").text() == '@'+user) |
|
|
|
if ((elem.find('[data-screen-name="' + user + '"]').length && !elem.find(".post-retransmited-by").text()) |
|
|
|
$( this ).remove(); |
|
|
|
|| elem.find(".post-retransmited-by").text() === '@'+user) |
|
|
|
|
|
|
|
elem.remove(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|