Sha256: 1c415f1b1348b63348506434621dd0702f11b96347375007377cec25ceb7a66e

Contents?: true

Size: 786 Bytes

Versions: 73

Compression:

Stored size: 786 Bytes

Contents

import RegisteredUsers from './registered_users'
import GroupParticipants from './group_participants'

export default class {
  // Adds autocomplete to the user search function and enables the
  // "Allow all registered users" button.
  constructor(elem) {
    this.userField = elem.find('#user-participants-form input[type=text]')

    let button = elem.find('button[data-behavior="add-registered-users"]')
    let agents = elem.find('[data-agent]').map((_i, field) => { return field.getAttribute('data-agent') })
    let groupParticipants = new GroupParticipants(elem.find('#group-participants-form'))
    this.registeredUsersButton = new RegisteredUsers(button, agents, groupParticipants)
  }

  setup() {
    this.userField.userSearch()
    this.registeredUsersButton.setup()
  }
}

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
hyrax-2.9.5 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.2 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.1 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.0 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.0.pre.rc4 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.9.4 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.0.pre.rc3 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.9.3 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.9.2 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.9.1 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.9.0 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.0.pre.rc2 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.8.0 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.7.2 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.7.1 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.7.0 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.6.0 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.0.pre.rc1 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-3.0.0.pre.beta3 app/assets/javascripts/hyrax/admin/admin_set/participants.es6
hyrax-2.5.1 app/assets/javascripts/hyrax/admin/admin_set/participants.es6