diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-26 15:59:29 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-26 15:59:29 -0400 |
commit | 5bd19650a30cbfc2e7f75135e0ebf1788c4b9767 (patch) | |
tree | 97dde356e23e0739b52bf560d9c4e71bd16a823f /ui/jquery.ui.datepicker.js | |
parent | d73edfff769603681a0889585b45062cdf98743e (diff) | |
download | jquery-ui-5bd19650a30cbfc2e7f75135e0ebf1788c4b9767.tar.gz jquery-ui-5bd19650a30cbfc2e7f75135e0ebf1788c4b9767.zip |
Datepicker: Removed iframe cover for IE6.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 97a45139f..f74cb3bf9 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -682,23 +682,13 @@ $.extend(Datepicker.prototype, { if (!inst.inline) { var showAnim = $.datepicker._get(inst, 'showAnim'); var duration = $.datepicker._get(inst, 'duration'); - var postProcess = function() { - var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only - if( !! cover.length ){ - var borders = $.datepicker._getBorders(inst.dpDiv); - cover.css({left: -borders[0], top: -borders[1], - width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()}); - } - }; inst.dpDiv.zIndex($(input).zIndex()+1); $.datepicker._datepickerShowing = true; if ( $.effects && $.effects.effect[ showAnim ] ) - inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); + inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration); else - inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess); - if (!showAnim || !duration) - postProcess(); + inst.dpDiv[showAnim || 'show'](showAnim ? duration : null); if (inst.input.is(':visible') && !inst.input.is(':disabled')) inst.input.focus(); $.datepicker._curInst = inst; @@ -712,10 +702,6 @@ $.extend(Datepicker.prototype, { instActive = inst; // for delegate hover events inst.dpDiv.empty().append(this._generateHTML(inst)); this._attachHandlers(inst); - var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only - if( !!cover.length ){ //avoid call to outerXXXX() when not in IE6 - cover.css({left: -borders[0], top: -borders[1], width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()}) - } inst.dpDiv.find('.' + this._dayOverClass + ' a').mouseover(); var numMonths = this._getNumberOfMonths(inst); var cols = numMonths[1]; @@ -1604,8 +1590,7 @@ $.extend(Datepicker.prototype, { } html += group; } - html += buttonPanel + ($.ui.ie6 && !inst.inline ? - '<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>' : ''); + html += buttonPanel; inst._keyEvent = false; return html; }, |