Skip to content

Commit

Permalink
Make sure removing dpDiv doesn't prevent all future datepickers from …
Browse files Browse the repository at this point in the history
…working.
  • Loading branch information
pifantastic committed Jun 1, 2010
1 parent a8311f9 commit f48de0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -1697,7 +1697,7 @@ function isArray(a) {
$.fn.datepicker = function(options){

/* Initialise the date picker. */
if (!$.datepicker.initialized) {
if (!$.datepicker.initialized || $($.datepicker._mainDivId).length == 0) {
$(document).mousedown($.datepicker._checkExternalClick).
find('body').append($.datepicker.dpDiv);
$.datepicker.initialized = true;
Expand Down

1 comment on commit f48de0a

@rdworth
Copy link

@rdworth rdworth commented on f48de0a Jun 1, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please amend your commit as per http://wiki.jqueryui.com/Commit-Message-Style-Guide . Thanks.

Please sign in to comment.