From 27afd18d256bc5cdf6d8395de26d021afd61af88 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 28 Dec 2014 20:22:37 +0100 Subject: [PATCH] fixed follow button --- app/assets/javascripts/user.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/user.coffee b/app/assets/javascripts/user.coffee index 75c62a88..7b4cf4fb 100644 --- a/app/assets/javascripts/user.coffee +++ b/app/assets/javascripts/user.coffee @@ -37,9 +37,9 @@ $(document).on "click", "button[name=user-action]", -> switch action when 'follow' btn[0].dataset.action = 'unfollow' - btn.attr 'class', 'btn btn-default btn-block' + btn.attr 'class', 'btn btn-default btn-block profile--follow-btn' btn.html 'Unfollow' when 'unfollow' btn[0].dataset.action = 'follow' - btn.attr 'class', 'btn btn-primary btn-block' + btn.attr 'class', 'btn btn-primary btn-block profile--follow-btn' btn.html 'Follow'