Sha256: 112722443aa5987539e259beaa9c20c400b6fce6324bfcc43cfaf9ee230395a4

Contents?: true

Size: 461 Bytes

Versions: 16

Compression:

Stored size: 461 Bytes

Contents

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

initialize = ->
  $('input.effective_date_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_picker/initialize.js.coffee
effective_form_inputs-1.0.5 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-1.0.4 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-1.0.3 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-1.0.2 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-1.0.1 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-1.0.0 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.8 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.7 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.6 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.5 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.4 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.3 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.2 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.1 app/assets/javascripts/effective_date_picker/initialize.js.coffee
effective_form_inputs-0.9.0 app/assets/javascripts/effective_date_picker/initialize.js.coffee