Datepicker: Make use of Calendar widget icons option

Fix missing classes options defaults in tests.
This commit is contained in:
Felix Nagel 2016-04-16 18:47:43 +02:00
parent d7939faae2
commit ea6c475da4
2 changed files with 12 additions and 2 deletions

View File

@ -8,10 +8,20 @@ common.testWidget( "datepicker", {
defaults: {
appendTo: null,
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,
dateFormat: { date: "short" },
eachDay: $.noop,
icons: {
prevButton: "ui-icon-circle-triangle-w",
nextButton: "ui-icon-circle-triangle-e"
},
labels: {
"datePickerRole": "date picker",
"nextText": "Next",

View File

@ -57,7 +57,7 @@ var widget = $.widget( "ui.datepicker", {
},
calendarOptions: [ "buttons", "classes", "disabled", "dateFormat", "eachDay",
"labels", "locale", "max", "min", "numberOfMonths", "showWeek" ],
"icons", "labels", "locale", "max", "min", "numberOfMonths", "showWeek" ],
_create: function() {
this.suppressExpandOnFocus = false;