title: datepicker onClose issue
body: <p>From researching on this site, I found a way to use 2 datepickers. If you pick a date on the first one, the second one will automatically show with the selected date as new minDate. You can see this in action on my test server here: <a href="http://www.zinius.nl/trips" rel="nofollow">http://www.zinius.nl/trips</a></p>
  
  <p>The issue I'm having occurs in this situation:
  Select the Check-in-date field, but don’t select a date and click somewhere else. You won’t be
  able to get the Check-in-date field datepicker pop-up back up again until you refresh the entire page or first select the Check-out-date.</p>
  
  <p>This is the code I am using:</p>
  
  <pre><code>$( "#datepicker1" ).datepicker({
  showOn: 'both',
  buttonImage: 'images/ico/calendar.png',
  buttonImageOnly: true,
  minDate: 0,
  firstDay: 0,
  dateFormat: 'mm-dd-yy',
  changeMonth: false,
  numberOfMonths: 1,
  onClose: function( selectedDate ) {
      var minDate = $(this).datepicker('getDate');
      var newMin = new Date(minDate.setDate(minDate.getDate() + 1));
      $( "#datepicker2" ).datepicker( "option", "minDate", newMin );
      $( "#datepicker2" ).datepicker( "show" );
  }
  });
  $( "#datepicker2" ).datepicker({
  
  showOn: 'both',
  buttonImage: 'images/ico/calendar.png',
  buttonImageOnly: true,
  minDate: '+1d',
  changeMonth: false,
  firstDay: 0,
  dateFormat: 'mm-dd-yy',
  numberOfMonths: 1,
  onClose: function( selectedDate ) {
  }
  });
  </code></pre>
  
  <p>I tried replacing the onClose with onSelect. This solves the issue, but when I select a date on datepicker1, datepicker2 appears and disappears in a flash. </p>
  
  <p>Does anyone have a solution to get this working properly?</p>
  
  <p>Thank you,
  Guilliano</p>