Sha256: db78112120ced200c18e3512713753886a405271479b21098d7f66e3fa45fad1

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

#= require datetimepicker/bootstrap_datepicker
#= require datetimepicker/bootstrap_timepicker

jQuery () ->

  # This format much match up with the format in Time::DATE_FORMATS[:datetimepicker_date]
  # TODO: automate this conversion for the gemfile drop in version.
  jQuery(".datetimepicker_date").datepicker(format: "yyyy/mm/dd")
    .on "changeDate", (ev) ->
      $(this).datepicker('hide').blur()
  
  jQuery(".datetimepicker_time").timepicker(showMeridian: false, template: "modal", defaultTime: "value")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datetimepicker-0.0.2 app/assets/javascripts/datetimepicker.js.coffee
datetimepicker-0.0.1 app/assets/javascripts/datetimepicker.js.coffee