mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Datepicker: Don't use ui-helper-hidden-accessible for initial hiding.
This commit is contained in:
2
themes/base/jquery.ui.datepicker.css
vendored
2
themes/base/jquery.ui.datepicker.css
vendored
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* http://docs.jquery.com/UI/Datepicker#theming
|
||||
*/
|
||||
.ui-datepicker { width: 17em; padding: .2em .2em 0; }
|
||||
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
||||
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
||||
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
||||
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
||||
|
||||
3
ui/jquery.ui.datepicker.js
vendored
3
ui/jquery.ui.datepicker.js
vendored
@@ -107,7 +107,7 @@ function Datepicker() {
|
||||
autoSize: false // True to size the input for the date format, false to leave as is
|
||||
};
|
||||
$.extend(this._defaults, this.regional['']);
|
||||
this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>');
|
||||
this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>');
|
||||
}
|
||||
|
||||
$.extend(Datepicker.prototype, {
|
||||
@@ -272,6 +272,7 @@ $.extend(Datepicker.prototype, {
|
||||
this._setDate(inst, this._getDefaultDate(inst), true);
|
||||
this._updateDatepicker(inst);
|
||||
this._updateAlternate(inst);
|
||||
inst.dpDiv.show();
|
||||
},
|
||||
|
||||
/* Pop-up the date picker in a "dialog" box.
|
||||
|
||||
Reference in New Issue
Block a user