fixed follow button

This commit is contained in:
nilsding 2014-12-28 20:22:37 +01:00
parent f158acff3f
commit 27afd18d25
1 changed files with 2 additions and 2 deletions

View File

@ -37,9 +37,9 @@ $(document).on "click", "button[name=user-action]", ->
switch action switch action
when 'follow' when 'follow'
btn[0].dataset.action = 'unfollow' 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' btn.html 'Unfollow'
when 'unfollow' when 'unfollow'
btn[0].dataset.action = 'follow' 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' btn.html 'Follow'