Sha256: 0bac4d74e4706262a31909f987d582e32ac5e4b715209f794dff2d70ed76ef65

Contents?: true

Size: 764 Bytes

Versions: 11

Compression:

Stored size: 764 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 = this.pathname().split("/")
    urlParts[urlParts.length - 1] = "files"
    return urlParts.join("/") 
  }

  pathname() {
    return window.location.pathname
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-5.0.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-5.0.0.rc3 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-5.0.0.rc2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-5.0.0.rc1 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-4.0.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-4.0.0.rc3 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-4.0.0.rc2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-4.0.0.rc1 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-4.0.0.beta2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-4.0.0.beta1 app/assets/javascripts/hyrax/collections/editor.es6