From 82cf9e297fd78730dadd9a486d6871eca72455dd Mon Sep 17 00:00:00 2001 From: ryanolton Date: Thu, 12 Jan 2012 11:22:48 -0500 Subject: [PATCH] =?utf8?q?Datepicker:=20added=20check=20to=20account=20for?= =?utf8?q?=20multiple=20pickers=20on=20one=20page.=20Fixed=20#5818=20?= =?utf8?q?=E2=80=93=20multiple=20DatePickers=20won't=20trigger=20close=20e?= =?utf8?q?vent?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ui/jquery.ui.datepicker.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 45ddf8678..5915d4027 100644 --- a/ui/jquery.ui.datepicker.js +++ b/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; }); -- 2.39.5