Fix Operators must be spaced properly rule on multiple coffeescript files

This commit is contained in:
Bertocq
2017-06-16 00:03:34 +02:00
parent 2c4139d4ac
commit 8f682901ed
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ App.LegislationAdmin =
checkbox = $(this)
parent = $(this).parents('.row:eq(0)')
date_selector = $(this).data('disable-date')
parent.find("input[type='text'][id^='"+date_selector+"']").each ->
parent.find("input[type='text'][id^='" + date_selector + "']").each ->
if checkbox.is(':checked')
$(this).removeAttr("disabled")
else

View File

@@ -66,7 +66,7 @@ App.LegislationAnnotatable =
$(elem).data("annotation-id")
annotation_id = target.data('annotation-id')
$('[data-annotation-id="'+annotation_id+'"]').addClass('current-annotation')
$('[data-annotation-id="' + annotation_id + '"]').addClass('current-annotation')
$('#comments-box').html('')
App.LegislationAllegations.show_comments()
@@ -154,7 +154,7 @@ App.LegislationAnnotatable =
), 100)
propotionalWeight: (v, max) ->
Math.floor(v*5/(max+1)) + 1
Math.floor(v * 5 / (max + 1)) + 1
addWeightClasses: ->
annotationsLoaded: (annotations) ->

View File

@@ -30,7 +30,7 @@ App.TreeNavigator =
elem.siblings('ul').show()
if anchor = $(location).attr('hash')
if link = elem.find('a[href="'+anchor+'"]')
if link = elem.find('a[href="' + anchor + '"]')
link.parents('ul').each ->
$(this).show()
$(this).siblings('span').removeClass('closed').addClass('open')