diff options
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r-- | ui/ui.datepicker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index fe14a5721..a8ccd8ef3 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1594,8 +1594,8 @@ $.fn.datepicker = function(options){ /* Initialise the date picker. */ if (!$.datepicker.initialized) { - $(document.body).append($.datepicker.dpDiv). - mousedown($.datepicker._checkExternalClick); + $(document).mousedown($.datepicker._checkExternalClick). + find('body').append($.datepicker.dpDiv); $.datepicker.initialized = true; } |