From: Felix Nagel Date: Sat, 16 Apr 2016 15:01:21 +0000 (+0200) Subject: Datepicker: Make use of classes option X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6fdf14f99a8c97baa5f57a88fcc1dd64bbfb243e;p=jquery-ui.git Datepicker: Make use of classes option --- diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index 6d45055e8..b48ea1cce 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -56,8 +56,8 @@ var widget = $.widget( "ui.datepicker", { select: null }, - calendarOptions: [ "buttons", "disabled", "dateFormat", "eachDay", "labels", - "locale", "max", "min", "numberOfMonths", "showWeek" ], + calendarOptions: [ "buttons", "classes", "disabled", "dateFormat", "eachDay", + "labels", "locale", "max", "min", "numberOfMonths", "showWeek" ], _create: function() { this.suppressExpandOnFocus = false; @@ -96,9 +96,8 @@ var widget = $.widget( "ui.datepicker", { var that = this, globalize = new Globalize( this.options.locale ); - this.calendar = $( "
" ) - .addClass( "ui-front ui-datepicker" ) - .appendTo( this._appendTo() ); + this.calendar = $( "
" ).appendTo( this._appendTo() ); + this._addClass( this.calendar, "ui-datepicker", "ui-front" ); // Initialize calendar widget this.calendarInstance = this.calendar