diff options
author | Keith Wood <kbwood.au@gmail.com> | 2009-01-19 09:59:37 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2009-01-19 09:59:37 +0000 |
commit | a91095e60dd610aadde5eb4f1ef87302490d36f3 (patch) | |
tree | e52b6e75986fcc1a3fedc2dbba2a655254ed1529 | |
parent | 67fb2c8a68123373a8fffa9d71e4af5ce2e6dc23 (diff) | |
download | jquery-ui-a91095e60dd610aadde5eb4f1ef87302490d36f3.tar.gz jquery-ui-a91095e60dd610aadde5eb4f1ef87302490d36f3.zip |
Fixed #3858 - Datepicker not hiding consistently on external click
-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; } |