Remove trailing newlines in CoffeeScript files

This commit is contained in:
Javi Martín
2019-03-04 13:48:54 +01:00
parent af9dce1dcf
commit a03c68c1e5
10 changed files with 4 additions and 15 deletions

View File

@@ -8,6 +8,3 @@ App.CheckAllNone =
$('[data-check-none]').on 'click', ->
target_name = $(this).data('check-none')
$("[name='" + target_name + "']").prop('checked', false)

View File

@@ -8,5 +8,3 @@ App.CheckboxToggle =
$target.show()
else
$target.hide()

View File

@@ -3,6 +3,3 @@ App.LocationChanger =
initialize: ->
$('.js-location-changer').on 'change', ->
window.location.assign($(this).val())

View File

@@ -41,4 +41,3 @@ App.Polls =
$(answer).removeClass("answer-divider")
unless $(answer).hasClass('first')
$(answer).insertAfter($(answer).next('div.answer'))

View File

@@ -4,4 +4,4 @@ App.SocialShare =
$(".social-share-button a").each ->
element = $(this)
site = element.data('site')
element.append("<span class='show-for-sr'>#{site}</span>")
element.append("<span class='show-for-sr'>#{site}</span>")

View File

@@ -20,4 +20,3 @@ App.TableSortable =
table.append rows[i]
i++
return

View File

@@ -31,4 +31,4 @@ App.TagAutocomplete =
return false;)
initialize: ->
App.TagAutocomplete.init_autocomplete()
App.TagAutocomplete.init_autocomplete()

View File

@@ -34,4 +34,3 @@ App.TreeNavigator =
link.parents('ul').each ->
$(this).show()
$(this).siblings('span').removeClass('closed').addClass('open')

View File

@@ -29,4 +29,4 @@ App.ValuationBudgetInvestmentForm =
initialize: ->
App.ValuationBudgetInvestmentForm.showFeasibilityFields()
App.ValuationBudgetInvestmentForm.showFeasibilityFieldsOnChange()
false
false

View File

@@ -29,4 +29,4 @@ App.ValuationSpendingProposalForm =
initialize: ->
App.ValuationSpendingProposalForm.showFeasibilityFields()
App.ValuationSpendingProposalForm.showFeasibilityFieldsOnChange()
false
false