Datepicker - Fixed #4949 - Double click on next/previous button closes the datepicker

This commit is contained in:
Keith Wood 2009-12-08 04:54:04 +00:00
parent 2b31eafb61
commit ef0e88c8a1

View File

@ -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))