Skip to content
Permalink
Browse files

Datepicker - Fixed #4949 - Double click on next/previous button close…

…s the datepicker
  • Loading branch information
Keith Wood
Keith Wood committed Dec 8, 2009
1 parent 2b31eaf commit ef0e88c8a10d0b6b4873ece2e61de04a6a0df76b
Showing with 2 additions and 1 deletion.
  1. +2 −1 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))

0 comments on commit ef0e88c

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