Skip to content
Permalink
Browse files

Datepicker: Modified _updateDatepicker to not update display if updat…

…ed instance is not current instance. Fixed #6814 - datepicker('setDate') incorrectly overwrites current display with two datepickers.
  • Loading branch information...
Maciej Mroziński authored and scottgonzalez committed Jul 16, 2012
1 parent 75105f6 commit b4ef2f7ebb1162f75d8fa3276d73e4746bcace84
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/jquery.ui.datepicker.js
@@ -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

0 comments on commit b4ef2f7

Please sign in to comment.
You can’t perform that action at this time.