diff options
author | Felix Nagel <info@felixnagel.com> | 2016-04-16 17:01:21 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2016-09-29 15:10:46 +0200 |
commit | 6fdf14f99a8c97baa5f57a88fcc1dd64bbfb243e (patch) | |
tree | e52c021bb261bbdcdef13b9d5906017686209245 | |
parent | bd7a6f1468a160528d239a46489c022fa35385f0 (diff) | |
download | jquery-ui-6fdf14f99a8c97baa5f57a88fcc1dd64bbfb243e.tar.gz jquery-ui-6fdf14f99a8c97baa5f57a88fcc1dd64bbfb243e.zip |
Datepicker: Make use of classes option
-rw-r--r-- | ui/widgets/datepicker.js | 9 |
1 files 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 = $( "<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 |