Fix CoffeeLint rule 'Line contains a trailing semicolon' across multiple files

This commit is contained in:
Bertocq
2017-06-16 00:01:05 +02:00
parent 95f640d3c5
commit 6eb2647c1c
8 changed files with 15 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ App.AdvancedSearch =
$('#js-advanced-search').data('advanced-search-terms') $('#js-advanced-search').data('advanced-search-terms')
toggle_form: (event) -> toggle_form: (event) ->
event.preventDefault(); event.preventDefault()
$('#js-advanced-search').slideToggle() $('#js-advanced-search').slideToggle()
toggle_date_options: -> toggle_date_options: ->
@@ -39,4 +39,4 @@ App.AdvancedSearch =
$('#js-advanced-search-date-min').on $('#js-advanced-search-date-min').on
change: -> change: ->
App.AdvancedSearch.toggle_date_options() App.AdvancedSearch.toggle_date_options()

View File

@@ -3,10 +3,10 @@ App.AllowParticipation =
initialize: -> initialize: ->
$(document).on { $(document).on {
'mouseenter focus': -> 'mouseenter focus': ->
$(this).find(".js-participation-not-allowed").show(); $(this).find(".js-participation-not-allowed").show()
$(this).find(".js-participation-allowed").hide(); $(this).find(".js-participation-allowed").hide()
mouseleave: -> mouseleave: ->
$(this).find(".js-participation-not-allowed").hide(); $(this).find(".js-participation-not-allowed").hide()
$(this).find(".js-participation-allowed").show(); $(this).find(".js-participation-allowed").show()
}, ".js-participation" }, ".js-participation"
false false

View File

@@ -7,7 +7,7 @@ App.FixedBar =
$(window).on 'scroll', -> $(window).on 'scroll', ->
if $(window).scrollTop() > fixedBarTopPosition if $(window).scrollTop() > fixedBarTopPosition
$this.addClass('is-fixed') $this.addClass('is-fixed')
$("#check-ballot").css({ 'display': "inline-block" }); $("#check-ballot").css({ 'display': "inline-block" })
else else
$this.removeClass('is-fixed') $this.removeClass('is-fixed')
$("#check-ballot").hide() $("#check-ballot").hide()

View File

@@ -1,7 +1,7 @@
App.IeAlert = App.IeAlert =
set_cookie_and_hide: (event) -> set_cookie_and_hide: (event) ->
event.preventDefault() event.preventDefault()
$.cookie('ie_alert_closed', 'true', { path: '/', expires: 365 }); $.cookie('ie_alert_closed', 'true', { path: '/', expires: 365 })
$('.ie-callout').remove() $('.ie-callout').remove()
initialize: -> initialize: ->

View File

@@ -21,5 +21,5 @@ App.RegistrationForm =
if registrationForm.length > 0 if registrationForm.length > 0
usernameInput.on "focusout", -> usernameInput.on "focusout", ->
clearUsernameMessage() clearUsernameMessage()
username = usernameInput.val(); username = usernameInput.val()
validateUsername(username) if username != "" validateUsername(username) if username != ""

View File

@@ -12,7 +12,7 @@ App.Tags =
current_tags = $tag_input.val().split(',').filter(Boolean) current_tags = $tag_input.val().split(',').filter(Boolean)
if $.inArray(name, current_tags) >= 0 if $.inArray(name, current_tags) >= 0
current_tags.splice($.inArray(name, current_tags), 1); current_tags.splice($.inArray(name, current_tags), 1)
else else
current_tags.push name current_tags.push name

View File

@@ -1,5 +1,5 @@
App.Users = App.Users =
initialize: -> initialize: ->
$('.initialjs-avatar').initial(); $('.initialjs-avatar').initial()
false false

View File

@@ -3,11 +3,11 @@ App.Votes =
hoverize: (votes) -> hoverize: (votes) ->
$(document).on { $(document).on {
'mouseenter focus': -> 'mouseenter focus': ->
$("div.participation-not-allowed", this).show(); $("div.participation-not-allowed", this).show()
$("div.participation-allowed", this).hide(); $("div.participation-allowed", this).hide()
mouseleave: -> mouseleave: ->
$("div.participation-not-allowed", this).hide(); $("div.participation-not-allowed", this).hide()
$("div.participation-allowed", this).show(); $("div.participation-allowed", this).show()
}, votes }, votes
initialize: -> initialize: ->