diff options
-rw-r--r-- | ui/ui.datepicker.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index a04457524..ca27f1a05 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1563,11 +1563,9 @@ $.fn.datepicker = function(options){ /* Initialise the date picker. */ if (!$.datepicker.initialized) { - $(function() { - $(document.body) - .append($.datepicker.dpDiv) - .mousedown($.datepicker._checkExternalClick); - }); + $(document.body) + .append($.datepicker.dpDiv) + .mousedown($.datepicker._checkExternalClick); $.datepicker.initialized = true; } |