Sha256: 3cf5551d5b51aaac15f9a14e60bfc1cc0377e4b980ded651d923c37542e61700

Contents?: true

Size: 426 Bytes

Versions: 8

Compression:

Stored size: 426 Bytes

Contents

$ ->

  $('body').on 'click', '.checklist:not([readonly]) li:not([readonly])', ->
    if $(@).attr('aria-checked') == "true" or $(@).attr('data-checked') == "true" or $(@).attr('checked') == "checked" or $(@).hasClass('checked') or $(@).hasClass('completed')
      $(@).attr('aria-checked', "false")
    else
      $(@).attr('aria-checked', "true")
    $(@).removeClass('checked completed').removeAttr('data-checked checked')

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
groundworkcss-2.3.7 app/assets/javascripts/groundworkcss/components/checklists.coffee
groundworkcss-2.3.6 app/assets/javascripts/groundworkcss/components/checklists.coffee
groundworkcss-2.3.5 app/assets/javascripts/groundworkcss/components/checklists.coffee
groundworkcss-2.3.4 app/assets/javascripts/groundworkcss/components/checklists.coffee
groundworkcss-2.3.3 app/assets/javascripts/groundworkcss/components/checklists.coffee
groundworkcss-2.3.2 app/assets/javascripts/groundworkcss/components/checklists.coffee
groundworkcss-2.3.1 app/assets/javascripts/groundworkcss/components/checklists.coffee
groundworkcss-2.2.1 app/assets/javascripts/groundworkcss/components/checklists.coffee