don't need document ready on init

This commit is contained in:
Marc Grabanski 2008-07-20 17:16:09 +00:00
parent d675c6c510
commit 57599ce033

View File

@ -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;
} }