Skip to content

Commit 6fdf14f

Browse files
committed
Datepicker: Make use of classes option
1 parent bd7a6f1 commit 6fdf14f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ui/widgets/datepicker.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ var widget = $.widget( "ui.datepicker", {
5656
select: null
5757
},
5858

59-
calendarOptions: [ "buttons", "disabled", "dateFormat", "eachDay", "labels",
60-
"locale", "max", "min", "numberOfMonths", "showWeek" ],
59+
calendarOptions: [ "buttons", "classes", "disabled", "dateFormat", "eachDay",
60+
"labels", "locale", "max", "min", "numberOfMonths", "showWeek" ],
6161

6262
_create: function() {
6363
this.suppressExpandOnFocus = false;
@@ -96,9 +96,8 @@ var widget = $.widget( "ui.datepicker", {
9696
var that = this,
9797
globalize = new Globalize( this.options.locale );
9898

99-
this.calendar = $( "<div>" )
100-
.addClass( "ui-front ui-datepicker" )
101-
.appendTo( this._appendTo() );
99+
this.calendar = $( "<div>" ).appendTo( this._appendTo() );
100+
this._addClass( this.calendar, "ui-datepicker", "ui-front" );
102101

103102
// Initialize calendar widget
104103
this.calendarInstance = this.calendar

0 commit comments

Comments
 (0)