From 2573fe8297a45821fcdfa5ac57a4d276721236c9 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 25 Jan 2014 13:27:01 -0200 Subject: [PATCH] list ourselves in following list so we may check about torrent synchronization --- twister_following.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twister_following.js b/twister_following.js index e02bf94..3bcc575 100644 --- a/twister_following.js +++ b/twister_following.js @@ -302,9 +302,6 @@ function showFollowingUsers(){ $followingList.append($template); for( var i = 0; i < followingUsers.length; i++ ) { - if( followingUsers[i] == defaultScreenName ) - continue; - var resItem = $template.clone(true); resItem.removeAttr('id'); resItem.show(); @@ -316,7 +313,10 @@ function showFollowingUsers(){ resItem.find(".public-following").prop("checked",isPublicFollowing(followingUsers[i])); getAvatar(followingUsers[i],resItem.find(".mini-profile-photo")); getFullname(followingUsers[i],resItem.find(".mini-profile-name")); - + if( followingUsers[i] == defaultScreenName ) { + resItem.find("button").hide(); + } + resItem.appendTo($followingList); } $.MAL.followingListLoaded();