Browse Source

deleting all user retwisted posts when unfollow

master
Simon Grim 10 years ago
parent
commit
dd9f6bcc63
  1. 4
      js/interface_home.js

4
js/interface_home.js

@ -148,8 +148,8 @@ var InterfaceFunctions = function() @@ -148,8 +148,8 @@ var InterfaceFunctions = function()
.on("eventUnfollow", function(e, user) {
$(".following-count").text(followingUsers.length-1);
$('.wrapper .postboard .post').each( function() {
if ($(this).find('[data-screen-name="'+user+'"]').length
&& (!$(this).find(".post-retransmited-by").text() || $(this).find(".post-retransmited-by").text() == '@'+user))
if (($(this).find('[data-screen-name="'+user+'"]').length && !$(this).find(".post-retransmited-by").text())
|| $(this).find(".post-retransmited-by").text() == '@'+user)
$( this ).remove();
});
});

Loading…
Cancel
Save