]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does... 706/head
authorMark Aaron Shirley <maspwr@gmail.com>
Fri, 27 Jul 2012 16:40:11 +0000 (09:40 -0700)
committerMark Aaron Shirley <maspwr@gmail.com>
Fri, 27 Jul 2012 16:40:11 +0000 (09:40 -0700)
ui/jquery.ui.datepicker.js

index 692832d197bb7d7a63ad428f84d36f8e5aabba93..d54c4fb8599f3e5435ea835b9b82d554715eaebe 100644 (file)
@@ -1818,7 +1818,7 @@ $.fn.datepicker = function(options){
        /* Initialise the date picker. */
        if (!$.datepicker.initialized) {
                $(document).mousedown($.datepicker._checkExternalClick).
-                       find('body').append($.datepicker.dpDiv);
+                       find(document.body).append($.datepicker.dpDiv);
                $.datepicker.initialized = true;
        }