From a7f10d81418a4d6fc727f0f5f288bf920e928510 Mon Sep 17 00:00:00 2001 From: Daniel Weigh Date: Sun, 26 Jan 2014 13:44:06 -0500 Subject: [PATCH] VRFS-930 Musician fixes VRFS-931 Band fixes Allows for (temporary?) hiding of buttons when FOLLOW is clicked. --- web/app/assets/javascripts/findBand.js | 3 ++- web/app/assets/javascripts/findMusician.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/app/assets/javascripts/findBand.js b/web/app/assets/javascripts/findBand.js index f35206798..3fcfb3960 100644 --- a/web/app/assets/javascripts/findBand.js +++ b/web/app/assets/javascripts/findBand.js @@ -182,7 +182,8 @@ processData: false, success: function(response) { // remove the orange look to indicate it's not selectable - $('div[data-band-id='+newFollowing.band_id+'] .search-m-follow').removeClass('button-orange'); +// @FIXME -- this will need to be tweaked when we allow unfollowing + $('div[data-band-id='+newFollowing.band_id+'] .search-m-follow').removeClass('button-orange').addClass('button-grey'); }, error: app.ajaxError }); diff --git a/web/app/assets/javascripts/findMusician.js b/web/app/assets/javascripts/findMusician.js index 357943281..91ecca218 100644 --- a/web/app/assets/javascripts/findMusician.js +++ b/web/app/assets/javascripts/findMusician.js @@ -178,7 +178,8 @@ function friendRequestCallback(user_id) { // remove the orange look to indicate it's not selectable - $('div[data-musician-id='+user_id+'] .search-m-friend').removeClass('button-orange'); +// @FIXME -- this will need to be tweaked when we allow unfollowing + $('div[data-musician-id='+user_id+'] .search-m-friend').removeClass('button-orange').addClass('button-grey'); } function followMusician(evt) { @@ -203,7 +204,8 @@ processData: false, success: function(response) { // remove the orange look to indicate it's not selectable - $('div[data-musician-id='+newFollowing.user_id+'] .search-m-follow').removeClass('button-orange'); +// @FIXME -- this will need to be tweaked when we allow unfollowing + $('div[data-musician-id='+newFollowing.user_id+'] .search-m-follow').removeClass('button-orange').addClass('button-grey'); }, error: app.ajaxError });