aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.datepicker.js8
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;
}