mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Fix this
reference in _hideDatepicker(). Fixed #7722 - Datepicker: Does not properly clear current instance when hidden.
(cherry picked from commit c36b43d0ee
)
This commit is contained in:
parent
f7b28df288
commit
63bd71f14c
3
ui/jquery.ui.datepicker.js
vendored
3
ui/jquery.ui.datepicker.js
vendored
@ -797,9 +797,10 @@ $.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);
|
||||
this._curInst = null;
|
||||
self._curInst = null;
|
||||
};
|
||||
if ($.effects && $.effects[showAnim])
|
||||
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
||||
|
Loading…
Reference in New Issue
Block a user