From: Mark Aaron Shirley Date: Fri, 27 Jul 2012 16:40:11 +0000 (-0700) Subject: Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does... X-Git-Tag: 1.9.0-rc.1~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F706%2Fhead;p=jquery-ui.git Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does not properly scope the body selector. --- diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 692832d19..d54c4fb85 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -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; }