|
|
@ -599,7 +599,7 @@ function openMentionsModalHandler(peerAlias) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function openFollowersModal(peerAlias) { |
|
|
|
function openFollowersModal(peerAlias) { |
|
|
|
var followers, title, txtAlert; |
|
|
|
var followers, title, warn; |
|
|
|
|
|
|
|
|
|
|
|
if (!peerAlias || peerAlias === defaultScreenName) { |
|
|
|
if (!peerAlias || peerAlias === defaultScreenName) { |
|
|
|
if (!defaultScreenName) { |
|
|
|
if (!defaultScreenName) { |
|
|
@ -612,21 +612,24 @@ function openFollowersModal(peerAlias) { |
|
|
|
} |
|
|
|
} |
|
|
|
title = polyglot.t('Followers'); |
|
|
|
title = polyglot.t('Followers'); |
|
|
|
followers = twisterFollowingO.knownFollowers.slice(); |
|
|
|
followers = twisterFollowingO.knownFollowers.slice(); |
|
|
|
txtAlert = '* ' + polyglot.t('warn_followers_not_all'); |
|
|
|
warn = { |
|
|
|
|
|
|
|
name: 'FollowersNotAll', |
|
|
|
|
|
|
|
text: '* ' + polyglot.t('warn_followers_not_all') |
|
|
|
|
|
|
|
}; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
title = polyglot.t('Followers_of', {alias: peerAlias}); |
|
|
|
title = polyglot.t('Followers_of', {alias: peerAlias}); |
|
|
|
followers = whoFollows(peerAlias); |
|
|
|
followers = whoFollows(peerAlias); |
|
|
|
txtAlert = polyglot.t('warn_followers_not_all_of', {alias: peerAlias}); |
|
|
|
warn = { |
|
|
|
|
|
|
|
name: 'FollowersNotAllOf', |
|
|
|
|
|
|
|
text: polyglot.t('warn_followers_not_all_of', {alias: peerAlias}) |
|
|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var modal = openModal({ |
|
|
|
var modal = openModal({ |
|
|
|
classAdd: 'followers-modal', |
|
|
|
classAdd: 'followers-modal', |
|
|
|
content: twister.tmpl.followersList.clone(true), |
|
|
|
content: twister.tmpl.followersList.clone(true), |
|
|
|
title: title, |
|
|
|
title: title, |
|
|
|
warn: { |
|
|
|
warn: warn |
|
|
|
name: 'FollowersNotAll', |
|
|
|
|
|
|
|
text: txtAlert |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
appendFollowersToElem(modal.content.find('ol'), followers); |
|
|
|
appendFollowersToElem(modal.content.find('ol'), followers); |
|
|
|