From 1626c97caa920d72d0bb7501b240e64538ed41cd Mon Sep 17 00:00:00 2001 From: Mark Aaron Shirley Date: Fri, 27 Jul 2012 09:40:11 -0700 Subject: [PATCH] Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does not properly scope the body selector. --- ui/jquery.ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 692832d197b..d54c4fb8599 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; }