Add followable JS module. Refactor follow_helper and follow buttons partial.

This commit is contained in:
Senén Rodero Rodríguez
2017-06-30 20:21:38 +02:00
parent 1f22286e29
commit 313b78978d
4 changed files with 59 additions and 17 deletions

View File

@@ -58,6 +58,7 @@
//= require legislation_allegations
//= require legislation_annotatable
//= require watch_form_changes
//= require followable
//= require tree_navigator
//= require custom
@@ -93,6 +94,7 @@ var initialize_modules = function() {
App.LegislationAnnotatable.initialize();
App.WatchFormChanges.initialize();
App.TreeNavigator.initialize();
App.Followable.initialize();
};
$(function(){
@@ -100,5 +102,5 @@ $(function(){
$(document).ready(initialize_modules);
$(document).on('page:load', initialize_modules);
$(document).on('ajax:complete', initialize_modules);
$(document).on('ajaxComplete', initialize_modules);
});