Initialize App js modules after followable update.
This commit is contained in:
@@ -102,5 +102,5 @@ $(function(){
|
|||||||
|
|
||||||
$(document).ready(initialize_modules);
|
$(document).ready(initialize_modules);
|
||||||
$(document).on('page:load', initialize_modules);
|
$(document).on('page:load', initialize_modules);
|
||||||
$(document).on('ajaxComplete', initialize_modules);
|
$(document).on('ajax:complete', initialize_modules);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ App.Followable =
|
|||||||
|
|
||||||
update: (followable_id, button) ->
|
update: (followable_id, button) ->
|
||||||
$("#" + followable_id + " .js-follow").html(button)
|
$("#" + followable_id + " .js-follow").html(button)
|
||||||
|
initialize_modules()
|
||||||
|
|||||||
Reference in New Issue
Block a user