Skip to content

Commit

Permalink
Merge pull request #569 from ryanolton/master
Browse files Browse the repository at this point in the history
Fixed #5818 - multiple DatePickers won't trigger close event
  • Loading branch information
scottgonzalez committed Jan 20, 2012
2 parents 09cf709 + 82cf9e2 commit c518774
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -233,7 +233,10 @@ $.extend(Datepicker.prototype, {
inst.trigger.click(function() { inst.trigger.click(function() {
if ($.datepicker._datepickerShowing && $.datepicker._lastInput == input[0]) if ($.datepicker._datepickerShowing && $.datepicker._lastInput == input[0])
$.datepicker._hideDatepicker(); $.datepicker._hideDatepicker();
else else if ($.datepicker._datepickerShowing && $.datepicker._lastInput != input[0]) {
$.datepicker._hideDatepicker();
$.datepicker._showDatepicker(input[0]);
} else
$.datepicker._showDatepicker(input[0]); $.datepicker._showDatepicker(input[0]);
return false; return false;
}); });
Expand Down

0 comments on commit c518774

Please sign in to comment.