Sha256: 8394e5390546a4f694f9089ee02e33c7fc85b3223adf9007125519c0c3675fd8

Contents?: true

Size: 524 Bytes

Versions: 4

Compression:

Stored size: 524 Bytes

Contents

import Default from './autocomplete/default'
import Work from './autocomplete/work'

export default class Autocomplete {
  // This is the initial setup for the form.
  setup (options) {
    var data = options.data
    var element = options.element
    switch (data.autocomplete) {
      case 'work':
        new Work(
          element,
          data.autocompleteUrl,
          element.data('exclude-work')
        )
        break
      default:
        new Default(element, data.autocompleteUrl)
        break
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/assets/javascripts/hyrax/autocomplete.es6
hyrax-1.1.0 app/assets/javascripts/hyrax/autocomplete.es6
hyrax-1.0.5 app/assets/javascripts/hyrax/autocomplete.es6
hyrax-1.0.4 app/assets/javascripts/hyrax/autocomplete.es6