mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Properly define default for dateFormat
option
This commit is contained in:
parent
9c66d2e92f
commit
ab2cb90240
@ -39,7 +39,7 @@ var idIncrement = 0,
|
||||
$.widget( "ui.datepicker", {
|
||||
options: {
|
||||
appendTo: null,
|
||||
dateFormat: null,
|
||||
dateFormat: { date: "short" },
|
||||
// TODO review
|
||||
eachDay: $.noop,
|
||||
numberOfMonths: 1,
|
||||
@ -59,7 +59,6 @@ $.widget( "ui.datepicker", {
|
||||
},
|
||||
|
||||
_create: function() {
|
||||
this.options.dateFormat = this.options.dateFormat || { date: "short" };
|
||||
this.date = $.date( null, this.options.dateFormat );
|
||||
|
||||
this.date.eachDay = this.options.eachDay;
|
||||
|
Loading…
Reference in New Issue
Block a user