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 4ade13450e)

Conflicts:

	ui/jquery.ui.datepicker.js
This commit is contained in:
Scott González 2012-04-03 15:37:56 -04:00
parent 97d9628929
commit fc6e72bf73

View File

@ -800,10 +800,8 @@ $.extend(Datepicker.prototype, {
if (this._datepickerShowing) { if (this._datepickerShowing) {
var showAnim = this._get(inst, 'showAnim'); var showAnim = this._get(inst, 'showAnim');
var duration = this._get(inst, 'duration'); var duration = this._get(inst, 'duration');
var self = this;
var postProcess = function() { var postProcess = function() {
$.datepicker._tidyDialog(inst); $.datepicker._tidyDialog(inst);
self._curInst = null;
}; };
if ($.effects && $.effects[showAnim]) if ($.effects && $.effects[showAnim])
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);