//= require trix
//= require jquery.geocomplete
//= require cleave
//= require ./trix_events
//= require ./trix_toolbar
//= require ./app/init
//= require_tree ./app

$(document).on('turbolinks:load', function() {

  // Datepicker
  $('.air-datepicker').datepicker({
    autoClose: true,
    onSelect: function onSelect(_, _, instance) {
      $(instance.el).trigger("datepicker-change");
    }
  });

});

//= require trix
//= require jquery.geocomplete
//= require cleave
//= require ./trix_events
//= require ./trix_toolbar
//= require ./app/init
//= require_tree ./app

$(document).on('turbolinks:load', function() {

  // Datepicker
  $('.air-datepicker').datepicker({
    autoClose: true,
    minutesStep: 5,
    onSelect: function onSelect(_, _, instance) {
      $(instance.el).trigger("datepicker-change");
    }
  });

});

Allow only 5 minute increments for date picker so we reduce the number of steps