VRFS-2424 added user genres
This commit is contained in:
parent
9f60327d20
commit
e53b9b3df8
|
|
@ -23,6 +23,11 @@
|
|||
instrumentHtml += '<div class="left mr10 mb"><img src="' + context.JK.getInstrumentIcon24(val.instrument_id) + '" title="' + context.JK.getInstrumentId(val.instrument_id) + '" width="24" height="24" /></div>';
|
||||
});
|
||||
|
||||
var genreHtml = '';
|
||||
$.each(response.genres, function(index, val) {
|
||||
genreHtml += val.description + ' ';
|
||||
});
|
||||
|
||||
// followings
|
||||
var followingHtml = '';
|
||||
$.each(response.followings, function(index, val) {
|
||||
|
|
@ -99,6 +104,7 @@
|
|||
first_name: response.first_name,
|
||||
location: response.location,
|
||||
instruments: instrumentHtml,
|
||||
genres: genreHtml,
|
||||
friend_count: response.friend_count,
|
||||
follower_count: response.follower_count,
|
||||
recording_count: response.recording_count,
|
||||
|
|
|
|||
|
|
@ -354,6 +354,10 @@
|
|||
$('#profile-instruments').append(instrumentHtml);
|
||||
}
|
||||
}
|
||||
$('#profile-genres').empty();
|
||||
for (var i=0; i< user.genres.length; i++) {
|
||||
$('#profile-genres').append(user.genres[i].description + '<br />');
|
||||
}
|
||||
|
||||
// location
|
||||
$('#profile-location').html(user.location);
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@
|
|||
<h3>{name}</h3>
|
||||
<small>{location}</small><br /><br />
|
||||
{instruments}
|
||||
{genres}
|
||||
<br clear="all" />
|
||||
<span class="friend-count" title="friends">{friend_count} <img src="/assets/content/icon_friend.png" align="absmiddle" style="margin-right:4px;" /></span>
|
||||
<span class="follower-count" title="followers"><span id="spnFollowCount">{follower_count}</span> <img src="/assets/content/icon_followers.png" width="22" height="12" align="absmiddle" style="margin-right:4px;" /></span>
|
||||
|
|
@ -134,4 +135,4 @@
|
|||
</div>
|
||||
<br /><br />
|
||||
</div>
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@
|
|||
</div>
|
||||
<br />
|
||||
<div id="profile-instruments"></div>
|
||||
<br />
|
||||
<div id="profile-genres"></div>
|
||||
</div>
|
||||
<br clear="all" />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue