Merge branch 'sandbox-html' into legislation-module-stable

This commit is contained in:
Amaia Castro
2016-12-21 15:49:37 +01:00
23 changed files with 2452 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
App.Allegations =
toggle_comments: ->
$('.draft-allegation').toggleClass('comments-on');
toggle_index: ->
$('.draft-allegation').toggleClass('comments-on');
initialize: ->
$('#js-toggle-allegation-comments').on
click: ->
App.Allegations.toggle_comments()
$('#js-toggle-allegation-index').on
click: ->
App.Allegations.toggle_index()

View File

@@ -49,6 +49,7 @@
//= require markdown-it
//= require markdown_editor
//= require cocoon
//= require allegations
//= require custom
var initialize_modules = function() {
@@ -72,6 +73,7 @@ var initialize_modules = function() {
App.Banners.initialize();
App.SocialShare.initialize();
App.MarkdownEditor.initialize();
App.Allegations.initialize();
};
$(function(){