Sha256: 29d0c4241c8156c1e51c9e43e557c149b0f0191113e7bdca7721251e2925a68e

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 Bytes

Contents

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

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

    date_picker_options = _.defaults({format: "dd.mm.yyyy", minView: 2}, 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

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.7.0 app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee
ab_admin-0.6.1 app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee
ab_admin-0.6.0 app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee
ab_admin-0.5.0 app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee