]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Make use of classes option
authorFelix Nagel <info@felixnagel.com>
Sat, 16 Apr 2016 15:01:21 +0000 (17:01 +0200)
committerFelix Nagel <info@felixnagel.com>
Thu, 29 Sep 2016 13:10:46 +0000 (15:10 +0200)
ui/widgets/datepicker.js

index 6d45055e8a7085819116595b918f94f32b776a2e..b48ea1cce4e0ba530bbf98b142b63797e4864c4d 100644 (file)
@@ -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 = $( "<div>" )
-                       .addClass( "ui-front ui-datepicker" )
-                       .appendTo( this._appendTo() );
+               this.calendar = $( "<div>" ).appendTo( this._appendTo() );
+               this._addClass( this.calendar, "ui-datepicker", "ui-front" );
 
                // Initialize calendar widget
                this.calendarInstance = this.calendar