Initialize App js modules after followable update.

This commit is contained in:
Senén Rodero Rodríguez
2017-07-06 13:59:48 +02:00
parent 60e812c2e5
commit a7aef0a9fb
2 changed files with 2 additions and 1 deletions

View File

@@ -102,5 +102,5 @@ $(function(){
$(document).ready(initialize_modules);
$(document).on('page:load', initialize_modules);
$(document).on('ajaxComplete', initialize_modules);
$(document).on('ajax:complete', initialize_modules);
});

View File

@@ -6,3 +6,4 @@ App.Followable =
update: (followable_id, button) ->
$("#" + followable_id + " .js-follow").html(button)
initialize_modules()