Files
grecia/app/assets/javascripts/allegations.js.coffee
Martín González daba441178 Allegations page
2016-12-16 19:04:21 +01:00

17 lines
408 B
CoffeeScript

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()