Merge branch 'sandbox-html' into legislation-module-stable
This commit is contained in:
16
app/assets/javascripts/allegations.js.coffee
Normal file
16
app/assets/javascripts/allegations.js.coffee
Normal 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()
|
||||
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user