Sha256: 839b01fdc1e6e1327a4431346f1681bd044746fd3c01b3fbb3a8b76485c3a59e

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

var create_datepickers = function(){

  $('input.datepicker').datepicker({format: 'yyyy-mm-dd'}).on('changeDate', function() {
    $(this).data('datepicker').hide();
  });

  // $('input.datetimepicker').datepicker({format: "yyyy-mm-dd HH:mm pp", pick12HourFormat: true}).on('changeDate', function() {
  //   $(this).data('datepicker').hide();
  // });
}


$(document).on("ready page:load cocoon:after-insert", function () {
  create_datepickers();
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 app/assets/javascripts/cardboard/datepicker.js
cardboard_cms-0.2.2 app/assets/javascripts/cardboard/datepicker.js
cardboard_cms-0.2.1 app/assets/javascripts/cardboard/datepicker.js