Commit ff7bd5fc by Will Daly

Fixup: datetime field regression

parent fef17a4a
......@@ -96,7 +96,7 @@ OpenAssessment.DatetimeControl.prototype = {
var dateString = $(this.datePicker, this.element).val();
$(this.datePicker, this.element).datepicker({ showButtonPanel: true })
.datepicker("option", "dateFormat", "yy-mm-dd")
.val(dateString);
.datepicker("setDate", dateString);
$(this.timePicker, this.element).timepicker({
timeFormat: 'H:i',
step: 60
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment