Skip to content
Permalink
Browse files

Datepicker: added check to account for multiple pickers on one page. …

…Fixed #5818 – multiple DatePickers won't trigger close event
  • Loading branch information...
ryanolton
ryanolton committed Jan 12, 2012
1 parent e2d9b02 commit 82cf9e297fd78730dadd9a486d6871eca72455dd
Showing with 4 additions and 1 deletion.
  1. +4 −1 ui/jquery.ui.datepicker.js
@@ -233,7 +233,10 @@ $.extend(Datepicker.prototype, {
inst.trigger.click(function() {
if ($.datepicker._datepickerShowing && $.datepicker._lastInput == input[0])
$.datepicker._hideDatepicker();
else
else if ($.datepicker._datepickerShowing && $.datepicker._lastInput != input[0]) {
$.datepicker._hideDatepicker();
$.datepicker._showDatepicker(input[0]);
} else
$.datepicker._showDatepicker(input[0]);
return false;
});

0 comments on commit 82cf9e2

Please sign in to comment.
You can’t perform that action at this time.