Sha256: c6031d47512ffb11f67762cd1b266c46fb20a5f404aed125662feee7d7ec9fb0

Contents?: true

Size: 717 Bytes

Versions: 14

Compression:

Stored size: 717 Bytes

Contents

import ThumbnailSelect from 'hyrax/thumbnail_select'
import Participants from 'hyrax/admin/admin_set/participants'
import tabifyForm from 'hyrax/tabbed_form'

// Controls the behavior of the Collections edit form
// Add search for thumbnail to the edit descriptions
export default class {
  constructor(elem) {
    let field = elem.find('#collection_thumbnail_id')
    this.thumbnailSelect = new ThumbnailSelect(this.url(), field)
    tabifyForm(elem.find('form.editor'))

    let participants = new Participants(elem.find('#participants'))
    participants.setup()
  }

  url() {
    let urlParts = window.location.pathname.split("/")
    urlParts[urlParts.length - 1] = "files"
    return urlParts.join("/") 
  }
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.5.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.4.2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.4.1 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.4.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.3.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.2.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.1.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.0.2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.0.1 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.0.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.0.0.pre.rc4 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.0.0.pre.rc3 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-3.0.0.pre.rc2 app/assets/javascripts/hyrax/collections/editor.es6