$("#design").html("<%= escape_javascript(render("designs/selection")) %>");
$(".datepicker").datepicker({
  showOtherMonths: true,
  selectOtherMonths: true,
  changeMonth: true,
  changeYear: true
});
$("#ui-datepicker-div").hide();

$("#design").html("<%= escape_javascript(render("designs/selection")) %>");
$(".datepicker").datepicker({
  showOtherMonths: true,
  selectOtherMonths: true,
  changeMonth: true,
  changeYear: true
});
$("#ui-datepicker-div").hide();

$('[data-spy="scroll"]').each(function () {
  var $spy = $(this).scrollspy('refresh')
});

Make sure scroll spy is refreshed when a new sheet design is loaded
Make sure scroll spy is refreshed when a new sheet design is loaded
