]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Modified _updateDatepicker to not update display if updated instance...
authorMaciej Mroziński <mrozik87@gmail.com>
Mon, 16 Jul 2012 11:09:52 +0000 (13:09 +0200)
committerScott González <scott.gonzalez@gmail.com>
Tue, 17 Jul 2012 20:08:31 +0000 (16:08 -0400)
ui/jquery.ui.datepicker.js

index 06db79ba79b2d5c103747ef3dea61024d30d1287..4c260a1c8551d26af09bbf6662da9fdb3f6d9992 100644 (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