Skip to content

Commit

Permalink
✅ test: fix fieldDateTime test
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Aug 25, 2016
1 parent d908f39 commit 14c0602
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fields/fieldDateTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
ready() {
if ($.fn.datetimepicker) {
$(this.$el).datetimepicker(this.schema.dateTimePickerOptions);
//$(this.$el).data("DateTimePicker").date(this.formatValueToField(this.value));
let self = this;
$(this.$el).datetimepicker(defaults(this.schema.dateTimePickerOptions || {}, {
format: inputFormat
}));
}
else
console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!");
Expand Down

0 comments on commit 14c0602

Please sign in to comment.