mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: Make use of Calendar widget icons option
Fix missing classes options defaults in tests.
This commit is contained in:
parent
d7939faae2
commit
ea6c475da4
@ -8,10 +8,20 @@ common.testWidget( "datepicker", {
|
|||||||
defaults: {
|
defaults: {
|
||||||
appendTo: null,
|
appendTo: null,
|
||||||
buttons: [],
|
buttons: [],
|
||||||
classes: {},
|
classes: {
|
||||||
|
"ui-calendar": "ui-corner-all",
|
||||||
|
"ui-calendar-header-first": "ui-corner-left",
|
||||||
|
"ui-calendar-header-last": "ui-corner-right",
|
||||||
|
"ui-calendar-prev": "ui-corner-all",
|
||||||
|
"ui-calendar-next": "ui-corner-all"
|
||||||
|
},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
dateFormat: { date: "short" },
|
dateFormat: { date: "short" },
|
||||||
eachDay: $.noop,
|
eachDay: $.noop,
|
||||||
|
icons: {
|
||||||
|
prevButton: "ui-icon-circle-triangle-w",
|
||||||
|
nextButton: "ui-icon-circle-triangle-e"
|
||||||
|
},
|
||||||
labels: {
|
labels: {
|
||||||
"datePickerRole": "date picker",
|
"datePickerRole": "date picker",
|
||||||
"nextText": "Next",
|
"nextText": "Next",
|
||||||
|
@ -57,7 +57,7 @@ var widget = $.widget( "ui.datepicker", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
calendarOptions: [ "buttons", "classes", "disabled", "dateFormat", "eachDay",
|
calendarOptions: [ "buttons", "classes", "disabled", "dateFormat", "eachDay",
|
||||||
"labels", "locale", "max", "min", "numberOfMonths", "showWeek" ],
|
"icons", "labels", "locale", "max", "min", "numberOfMonths", "showWeek" ],
|
||||||
|
|
||||||
_create: function() {
|
_create: function() {
|
||||||
this.suppressExpandOnFocus = false;
|
this.suppressExpandOnFocus = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user