app/assets/javascripts/caboose/model/bound_date.js in caboose-cms-0.5.122 vs app/assets/javascripts/caboose/model/bound_date.js in caboose-cms-0.5.123
- old
+ new
@@ -55,12 +55,19 @@
}
});
$('#'+this.el).css('z-index', 21);
$('#'+this.el).css('position', 'relative');
$('#'+this.el).css('background', 'transparent');
- $('#'+this.el).datepicker({
- onSelect: function() { this2.save(); }
- });
+ //$('#'+this.el).datepicker({
+ // onSelect: function() { this2.save(); }
+ //});
+ $('#'+this.el).datetimepicker({
+ format: 'm/d/Y',
+ //formatDate: 'm/d/Y',
+ timepicker: false,
+ //formatTime: 'g:i a', // 12-hour format without leading zeros + lowercase am/pm
+ onSelectDate: function() { this2.save(); }
+ });
},
save: function() {
this.attribute.value = $('#'+this.el).val();
if (this.attribute.value == this.attribute.value_clean)