From fc6e72bf7399ecde5f15de88fd750a9a49b55b77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 3 Apr 2012 15:37:56 -0400 Subject: [PATCH] Datepicker: Don't set _curInst in hideDatepicker. Fixes #8174 - jQuery datepicker is stuck open if label is clicked from open state. (cherry picked from commit 4ade13450e7145100dcce3356eb1449e1a5f7090) Conflicts: ui/jquery.ui.datepicker.js --- ui/jquery.ui.datepicker.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 16ce463fb..4ba9857ef 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -800,10 +800,8 @@ $.extend(Datepicker.prototype, { if (this._datepickerShowing) { var showAnim = this._get(inst, 'showAnim'); var duration = this._get(inst, 'duration'); - var self = this; var postProcess = function() { $.datepicker._tidyDialog(inst); - self._curInst = null; }; if ($.effects && $.effects[showAnim]) inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); -- 2.39.5