Refactor js followable response.
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
b60748c552
commit
0c2be6a0d4
@@ -3,3 +3,6 @@ App.Followable =
|
||||
initialize: ->
|
||||
$('.followable-content a[data-toggle]').on 'click', (event) ->
|
||||
event.preventDefault()
|
||||
|
||||
update: (followable_id, button) ->
|
||||
$("#" + followable_id + " .js-follow").html(button)
|
||||
|
||||
Reference in New Issue
Block a user