Sha256: a228553607e407bd6b966c3d450462c9f723fb78fabfb4067f5f949be6953a4e

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

$(document).on 'ready page:load turbolinks:load', ->
  $(document).on 'focus', 'input.datepicker:not(.hasDatepicker)', ->
    input = $(@)

    # Only create datepickers in compatible browsers
    return if input[0].type is 'date'

    defaults = dateFormat: 'yy-mm-dd'
    options  = input.data 'datepicker-options'
    input.datepicker $.extend(defaults, options)

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
activeadmin-1.0.0 app/assets/javascripts/active_admin/initializers/datepicker.js.coffee
activeadmin-1.0.0.pre5 app/assets/javascripts/active_admin/initializers/datepicker.js.coffee
activeadmin-orac-1.0.0.pre4 app/assets/javascripts/active_admin/initializers/datepicker.js.coffee
activeadmin-orac-1.0.0 app/assets/javascripts/active_admin/initializers/datepicker.js.coffee
activeadmin-orac-1.0.0.pre.orac app/assets/javascripts/active_admin/initializers/datepicker.js.coffee
activeadmin-1.0.0.pre4 app/assets/javascripts/active_admin/initializers/datepicker.js.coffee
activeadmin-1.0.0.pre3 app/assets/javascripts/active_admin/initializers/datepicker.js.coffee