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:
Maciej Mroziński
2012-07-16 13:09:52 +02:00
committed by Scott González
parent 75105f612c
commit b4ef2f7ebb

View File

@@ -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