Sha256: fa50444132c893dbf23afd1d9465dec10c5f45392b2bbd0ce42a20b0b48e9580
Contents?: true
Size: 593 Bytes
Versions: 17
Compression:
Stored size: 593 Bytes
Contents
initialize = (target) -> $(target || document).find('div.effective-panel-select:not(.initialized)').each (i, element) -> element = $(element) options = element.data('input-js-options') || {} $select = element.addClass('initialized').effectivePanelSelect(options) $ -> initialize() $(document).on 'page:change', -> initialize() $(document).on 'turbolinks:load', -> initialize() $(document).on 'turbolinks:render', -> initialize() $(document).on 'cocoon:after-insert', -> initialize() $(document).on 'effective-form-inputs:initialize', (event) -> initialize(event.currentTarget)
Version data entries
17 entries across 17 versions & 1 rubygems