From 120ee58e5baff8f6248987bca22bc4deb0380504 Mon Sep 17 00:00:00 2001 From: ryanolton Date: Thu, 12 Jan 2012 11:22:48 -0500 Subject: [PATCH] =?UTF-8?q?Datepicker:=20added=20check=20to=20account=20fo?= =?UTF-8?q?r=20multiple=20pickers=20on=20one=20page.=20Fixed=20#5818=20?= =?UTF-8?q?=E2=80=93=20multiple=20DatePickers=20won't=20trigger=20close=20?= =?UTF-8?q?event(cherry=20picked=20from=20commit=2082cf9e297fd78730dadd9a4?= =?UTF-8?q?86d6871eca72455dd)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 6ee1ae6b4..fbf1f4c45 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; });