fixed follow button
This commit is contained in:
parent
f158acff3f
commit
27afd18d25
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue