From 6fdf14f99a8c97baa5f57a88fcc1dd64bbfb243e Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Sat, 16 Apr 2016 17:01:21 +0200 Subject: [PATCH] Datepicker: Make use of classes option --- ui/widgets/datepicker.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.39.5