Sha256: 1b0f5d04cb97d47b573e4714c6a528caae38cec4d84e3d8157c3acb8a1e7cf25

Contents?: true

Size: 285 Bytes

Versions: 99

Compression:

Stored size: 285 Bytes

Contents

export class ChecklistItem {
  constructor(element) {
    this.element = element
  }

  check() {
    this.element.removeClass('incomplete')
    this.element.addClass('complete')
  }

  uncheck() {
    this.element.removeClass('complete')
    this.element.addClass('incomplete')
  }
}

Version data entries

99 entries across 99 versions & 3 rubygems

Version Path
hyrax-5.0.1 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-5.0.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-5.0.0.rc3 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-5.0.0.rc2 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-5.0.0.rc1 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.6.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-4.0.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-4.0.0.rc3 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-4.0.0.rc2 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-4.0.0.rc1 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.5.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-4.0.0.beta2 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.4.2 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-4.0.0.beta1 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.4.1 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.4.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.3.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.2.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-2.9.6 app/assets/javascripts/hyrax/save_work/checklist_item.es6
hyrax-3.1.0 app/assets/javascripts/hyrax/save_work/checklist_item.es6