mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Datepicker: Modified _updateDatepicker to not update display if updated instance is not current instance. Fixed #6814 - datepicker('setDate') incorrectly overwrites current display with two datepickers.
This commit is contained in:
committed by
Scott González
parent
75105f612c
commit
b4ef2f7ebb
3
ui/jquery.ui.datepicker.js
vendored
3
ui/jquery.ui.datepicker.js
vendored
@@ -708,6 +708,9 @@ $.extend(Datepicker.prototype, {
|
||||
|
||||
/* Generate the date picker content. */
|
||||
_updateDatepicker: function(inst) {
|
||||
if ($.datepicker._curInst && inst != $.datepicker._curInst) {
|
||||
return;
|
||||
}
|
||||
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
|
||||
var borders = $.datepicker._getBorders(inst.dpDiv);
|
||||
instActive = inst; // for delegate hover events
|
||||
|
||||
Reference in New Issue
Block a user