Fix Operators must be spaced properly rule on multiple coffeescript files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) ->
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user