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