Sha256: 915ce52a12a3614a658443ffc028d32e4338e4108f87e62c33c7548fde308bfd

Contents?: true

Size: 391 Bytes

Versions: 12

Compression:

Stored size: 391 Bytes

Contents

import ThumbnailSelect from 'hyrax/thumbnail_select'

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.1 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.rc3 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.rc2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.rc1 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.beta5 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.beta4 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.beta3 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.beta2 app/assets/javascripts/hyrax/collections/editor.es6
hyrax-2.0.0.beta1 app/assets/javascripts/hyrax/collections/editor.es6