]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Moved the setting of _datepickerShowing to after postProcess to prevent...
authorScott González <scott.gonzalez@gmail.com>
Fri, 6 May 2011 17:31:43 +0000 (13:31 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 6 May 2011 17:31:43 +0000 (13:31 -0400)
ui/jquery.ui.datepicker.js

index 2ab23a6ebb56501132c13bfe55a13de69814a8cd..06d49304abf22adb1afdd62e2cd517988de0098d 100644 (file)
@@ -648,7 +648,6 @@ $.extend(Datepicker.prototype, {
                        var showAnim = $.datepicker._get(inst, 'showAnim');
                        var duration = $.datepicker._get(inst, 'duration');
                        var postProcess = function() {
-                               $.datepicker._datepickerShowing = true;
                                var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
                                if( !! cover.length ){
                                        var borders = $.datepicker._getBorders(inst.dpDiv);
@@ -657,6 +656,7 @@ $.extend(Datepicker.prototype, {
                                }
                        };
                        inst.dpDiv.zIndex($(input).zIndex()+1);
+                       $.datepicker._datepickerShowing = true;
                        if ($.effects && $.effects[showAnim])
                                inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
                        else