mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
don't need document ready on init
This commit is contained in:
parent
d675c6c510
commit
57599ce033
@ -1563,11 +1563,9 @@ $.fn.datepicker = function(options){
|
|||||||
|
|
||||||
/* Initialise the date picker. */
|
/* Initialise the date picker. */
|
||||||
if (!$.datepicker.initialized) {
|
if (!$.datepicker.initialized) {
|
||||||
$(function() {
|
$(document.body)
|
||||||
$(document.body)
|
.append($.datepicker.dpDiv)
|
||||||
.append($.datepicker.dpDiv)
|
.mousedown($.datepicker._checkExternalClick);
|
||||||
.mousedown($.datepicker._checkExternalClick);
|
|
||||||
});
|
|
||||||
$.datepicker.initialized = true;
|
$.datepicker.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user