Sha256: 41d80a59208ba3aec4ccd43f79d6b6d6d482e1575e21e71e38c800688b609d92

Contents?: true

Size: 300 Bytes

Versions: 3

Compression:

Stored size: 300 Bytes

Contents

Joint.bind 'Post.Delete', class
  loaded: =>
    @on 'change', @element().querySelector('input[type=checkbox]'), @toggle

  toggle: (e) =>
    button = e.target.parentElement
    if e.target.checked
      button.removeAttribute('disabled')
    else
      button.setAttribute('disabled', 'disabled')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecrire-0.22.1 lib/ecrire/app/assets/javascripts/admin/editor/navigation/delete.js.coffee
ecrire-0.21.0 lib/ecrire/app/assets/javascripts/admin/editor/navigation/delete.js.coffee
ecrire-0.20.0 lib/ecrire/app/assets/javascripts/admin/editor/navigation/delete.js.coffee