$ ->
  # this needs to be in a loop or else the pickers don't work well on the Important Dates page
  $(".datepicker").each (_, el) =>
    $(el).datetimepicker(
      timepicker: false,
      format: "Y/m/d",
      defaultDate: '<%= EventConfiguration.singleton.start_date.try(:strftime, "%Y/%m/%d") %>'
      )

  $('.datetimepicker').datetimepicker();

$ ->
  # this needs to be in a loop or else the pickers don't work well on the Important Dates page
  $(".datepicker").each (_, el) =>
    $(el).datetimepicker(
      timepicker: false,
      format: "Y/m/d",
      scrollMonth: false,
      scrollTime: false,
      scrollInput: false,
      defaultDate: '<%= EventConfiguration.singleton.start_date.try(:strftime, "%Y/%m/%d") %>'
      )

  $('.datetimepicker').datetimepicker();

Disable scroll-wheel in datetimepicker. Avoid mistakes
Disable scroll-wheel in datetimepicker. Avoid mistakes
