Fix indentation on multiple coffeescript files

This commit is contained in:
Bertocq
2017-06-16 00:05:07 +02:00
parent 8f682901ed
commit 3db13da2b1
2 changed files with 11 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ App.Banners =
update_style: (selector, style) -> update_style: (selector, style) ->
$(selector).removeClass($(selector).attr("class"), true) $(selector).removeClass($(selector).attr("class"), true)
.addClass(style, true) .addClass(style, true)
initialize: -> initialize: ->
$('[data-js-banner-title]').on $('[data-js-banner-title]').on

View File

@@ -11,15 +11,15 @@ App.LegislationAllegations =
initialize: -> initialize: ->
$('.js-toggle-allegations .draft-panel').on $('.js-toggle-allegations .draft-panel').on
click: (e) -> click: (e) ->
e.preventDefault() e.preventDefault()
e.stopPropagation() e.stopPropagation()
if !App.LegislationAnnotatable.isMobile() if !App.LegislationAnnotatable.isMobile()
App.LegislationAllegations.toggle_comments() App.LegislationAllegations.toggle_comments()
$('.js-toggle-allegations').on $('.js-toggle-allegations').on
click: (e) -> click: (e) ->
# Toggle comments when the section title is visible # Toggle comments when the section title is visible
if !App.LegislationAnnotatable.isMobile() if !App.LegislationAnnotatable.isMobile()
if $(this).find('.draft-panel .panel-title:visible').length == 0 if $(this).find('.draft-panel .panel-title:visible').length == 0
App.LegislationAllegations.toggle_comments() App.LegislationAllegations.toggle_comments()