Sha256: 5b6f4fe2c621c0cc7108e926e389c8ad4239cc53c34e65154df5e9c759c822fd

Contents?: true

Size: 466 Bytes

Versions: 16

Compression:

Stored size: 466 Bytes

Contents

# http://eonasdan.github.io/bootstrap-datetimepicker/Options/

initialize = ->
  $('input.effective_date_time_picker:not(.initialized)').each (i, element) ->
    element = $(element)
    options = element.data('input-js-options') || {}

    element.addClass('initialized').datetimepicker(options)

$ -> initialize()
$(document).on 'page:change', -> initialize()
$(document).on 'turbolinks:load', -> initialize()
$(document).on 'cocoon:after-insert', -> initialize()

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
effective_form_inputs-1.0.6 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-1.0.5 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-1.0.4 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-1.0.3 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-1.0.2 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-1.0.1 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-1.0.0 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.8 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.7 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.6 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.5 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.4 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.3 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.2 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.1 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee
effective_form_inputs-0.9.0 app/assets/javascripts/effective_date_time_picker/initialize.js.coffee