VRFS-689 only show band setup link if user is on his own profile

This commit is contained in:
Brian Smith 2013-11-22 00:16:03 -05:00
parent 92d9999719
commit 205d90e25b
1 changed files with 7 additions and 3 deletions

View File

@ -482,7 +482,9 @@
async: false,
processData:false,
success: function(response) {
if (!response || response.length === 0) {
logger.debug("context.JK.currentUserId=" + context.JK.currentUserId);
logger.debug("userId=" + userId);
if ( (!response || response.length === 0) && context.JK.currentUserId === userId) {
var noBandHtml = $('#template-no-bands').html();
$("#profile-bands").append(noBandHtml);
}
@ -538,8 +540,10 @@
configureBandFollowingButton(following, val.id);
});
var moreBandsHtml = $('#template-more-bands').html();
$("#profile-bands").append(moreBandsHtml);
if (context.JK.currentUserId === userId) {
var moreBandsHtml = $('#template-more-bands').html();
$("#profile-bands").append(moreBandsHtml);
}
}
},
error: app.ajaxError