Sha256: 2f0da7d00112cfab2674b7fe87b194d438bf6f55bea36d0ec86f101b7f122977

Contents?: true

Size: 724 Bytes

Versions: 1

Compression:

Stored size: 724 Bytes

Contents

$ ->
  window.initPickers = ->
    base_options =
      format: "dd.mm.yyyy hh:ii"
      autoclose: true
      todayBtn: true
      language: I18n.locale

    search_options = _.defaults({pickerPosition: "bottom-left datetimepicker-bottom-left-custom"}, base_options)
    $('#search_form input.datepicker').datetimepicker search_options

    date_picker_options = _.defaults({format: "dd.mm.yyyy"}, base_options)
    $('.simple_form input.date_picker').datetimepicker date_picker_options

    $('.simple_form input.datetime_picker').datetimepicker base_options

    time_picker_options = _.defaults({format: "hh:ii"}, base_options)
    $('.simple_form input.time_picker').datetimepicker time_picker_options

  initPickers()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ab_admin-0.4.0 app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee