From ef0e88c8a10d0b6b4873ece2e61de04a6a0df76b Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Tue, 8 Dec 2009 04:54:04 +0000 Subject: [PATCH] Datepicker - Fixed #4949 - Double click on next/previous button closes the datepicker --- ui/jquery.ui.datepicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index bc3a322ab..9b1025fe7 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -764,7 +764,8 @@ $.extend(Datepicker.prototype, { if (!$.datepicker._curInst) return; var $target = $(event.target); - if (($target.parents('#' + $.datepicker._mainDivId).length == 0) && + if ($target[0].id != $.datepicker._mainDivId && + $target.parents('#' + $.datepicker._mainDivId).length == 0 && !$target.hasClass($.datepicker.markerClassName) && !$target.hasClass($.datepicker._triggerClass) && $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) -- 2.39.5