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