Datepicker: Don't set _curInst in hideDatepicker. Fixes #8174 - jQuery datepicker is stuck open if label is clicked from open state.

This commit is contained in:
Scott González 2012-04-03 15:36:33 -04:00
parent e0616aaf74
commit 4ade13450e

View File

@ -801,10 +801,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 that = this;
var postProcess = function() { var postProcess = function() {
$.datepicker._tidyDialog(inst); $.datepicker._tidyDialog(inst);
that._curInst = null;
}; };
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed