diff --git a/app/assets/javascripts/advanced_search.js.coffee b/app/assets/javascripts/advanced_search.js.coffee index b38efb874..003fabd7f 100644 --- a/app/assets/javascripts/advanced_search.js.coffee +++ b/app/assets/javascripts/advanced_search.js.coffee @@ -4,7 +4,7 @@ App.AdvancedSearch = $('#js-advanced-search').data('advanced-search-terms') toggle_form: (event) -> - event.preventDefault(); + event.preventDefault() $('#js-advanced-search').slideToggle() toggle_date_options: -> @@ -39,4 +39,4 @@ App.AdvancedSearch = $('#js-advanced-search-date-min').on change: -> - App.AdvancedSearch.toggle_date_options() \ No newline at end of file + App.AdvancedSearch.toggle_date_options() diff --git a/app/assets/javascripts/allow_participation.js.coffee b/app/assets/javascripts/allow_participation.js.coffee index 116e374ca..da6bf47bb 100644 --- a/app/assets/javascripts/allow_participation.js.coffee +++ b/app/assets/javascripts/allow_participation.js.coffee @@ -3,10 +3,10 @@ App.AllowParticipation = initialize: -> $(document).on { 'mouseenter focus': -> - $(this).find(".js-participation-not-allowed").show(); - $(this).find(".js-participation-allowed").hide(); + $(this).find(".js-participation-not-allowed").show() + $(this).find(".js-participation-allowed").hide() mouseleave: -> - $(this).find(".js-participation-not-allowed").hide(); - $(this).find(".js-participation-allowed").show(); + $(this).find(".js-participation-not-allowed").hide() + $(this).find(".js-participation-allowed").show() }, ".js-participation" false diff --git a/app/assets/javascripts/fixed_bar.js.coffee b/app/assets/javascripts/fixed_bar.js.coffee index 8ccbf987f..5421d79e9 100644 --- a/app/assets/javascripts/fixed_bar.js.coffee +++ b/app/assets/javascripts/fixed_bar.js.coffee @@ -7,7 +7,7 @@ App.FixedBar = $(window).on 'scroll', -> if $(window).scrollTop() > fixedBarTopPosition $this.addClass('is-fixed') - $("#check-ballot").css({ 'display': "inline-block" }); + $("#check-ballot").css({ 'display': "inline-block" }) else $this.removeClass('is-fixed') $("#check-ballot").hide() diff --git a/app/assets/javascripts/ie_alert.js.coffee b/app/assets/javascripts/ie_alert.js.coffee index b756f0f8a..cab566b73 100644 --- a/app/assets/javascripts/ie_alert.js.coffee +++ b/app/assets/javascripts/ie_alert.js.coffee @@ -1,7 +1,7 @@ App.IeAlert = set_cookie_and_hide: (event) -> event.preventDefault() - $.cookie('ie_alert_closed', 'true', { path: '/', expires: 365 }); + $.cookie('ie_alert_closed', 'true', { path: '/', expires: 365 }) $('.ie-callout').remove() initialize: -> diff --git a/app/assets/javascripts/registration_form.js.coffee b/app/assets/javascripts/registration_form.js.coffee index 13233b68d..b4ba32d0a 100644 --- a/app/assets/javascripts/registration_form.js.coffee +++ b/app/assets/javascripts/registration_form.js.coffee @@ -21,5 +21,5 @@ App.RegistrationForm = if registrationForm.length > 0 usernameInput.on "focusout", -> clearUsernameMessage() - username = usernameInput.val(); + username = usernameInput.val() validateUsername(username) if username != "" diff --git a/app/assets/javascripts/tags.js.coffee b/app/assets/javascripts/tags.js.coffee index adbcad3e8..6e3c7165c 100644 --- a/app/assets/javascripts/tags.js.coffee +++ b/app/assets/javascripts/tags.js.coffee @@ -12,7 +12,7 @@ App.Tags = current_tags = $tag_input.val().split(',').filter(Boolean) if $.inArray(name, current_tags) >= 0 - current_tags.splice($.inArray(name, current_tags), 1); + current_tags.splice($.inArray(name, current_tags), 1) else current_tags.push name diff --git a/app/assets/javascripts/users.js.coffee b/app/assets/javascripts/users.js.coffee index 9c4fa42b0..2b1bc15de 100644 --- a/app/assets/javascripts/users.js.coffee +++ b/app/assets/javascripts/users.js.coffee @@ -1,5 +1,5 @@ App.Users = initialize: -> - $('.initialjs-avatar').initial(); + $('.initialjs-avatar').initial() false diff --git a/app/assets/javascripts/votes.js.coffee b/app/assets/javascripts/votes.js.coffee index 0f6dfcfc5..9176fea1a 100644 --- a/app/assets/javascripts/votes.js.coffee +++ b/app/assets/javascripts/votes.js.coffee @@ -3,11 +3,11 @@ App.Votes = hoverize: (votes) -> $(document).on { 'mouseenter focus': -> - $("div.participation-not-allowed", this).show(); - $("div.participation-allowed", this).hide(); + $("div.participation-not-allowed", this).show() + $("div.participation-allowed", this).hide() mouseleave: -> - $("div.participation-not-allowed", this).hide(); - $("div.participation-allowed", this).show(); + $("div.participation-not-allowed", this).hide() + $("div.participation-allowed", this).show() }, votes initialize: ->