* hide bogus profiles on profile page

This commit is contained in:
Seth Call 2016-01-15 13:21:51 -06:00
parent c2f4cd0c56
commit e40442af15
2 changed files with 11 additions and 10 deletions

View File

@ -8,6 +8,7 @@ module JamRuby
USER_TARGET_PREFIX = "user:"
CLIENT_TARGET_PREFIX = "client:"
ALL_NATIVE_CLIENTS = '__ALL_NATIVE_CLIENTS__' # special value used in place of a specific client ID
ALL_ACTIVE_CLIENTS = '__ALL_ACTIVE_CLIENTS__' # special value used in place of a specific client ID
def initialize()
@type_values = {}

View File

@ -494,14 +494,14 @@
var onlinePresences = player.online_presences;
if (onlinePresences.length == 0 && !player.website) {
$noOnlinePresence.show()
$userWebsite.show()
$soundCloudPresence.show()
$reverbNationPresence.show()
$bandCampPresence.show()
$fandalismPresence.show()
$youTubePresence.show()
$facebookPresence.show()
$twitterPresence.show()
$userWebsite.hide()
$soundCloudPresence.hide()
$reverbNationPresence.hide()
$bandCampPresence.hide()
$fandalismPresence.hide()
$youTubePresence.hide()
$facebookPresence.hide()
$twitterPresence.hide()
} else {
$noOnlinePresence.hide();
@ -511,10 +511,10 @@
if(website.indexOf('http') == -1) {
website = 'http://' + website;
}
$userWebsite.removeClass('hidden').find('a').attr('href', website)
$userWebsite.removeClass('hidden').show().find('a').attr('href', website)
}
else {
$userWebsite.addClass('hidden').find('a').attr('href', '')
$userWebsite.addClass('hidden').hide().find('a').attr('href', '')
}
var soundCloudPresences = profileUtils.soundCloudPresences(onlinePresences);