]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Make use of Calendar widget icons option 1698/head
authorFelix Nagel <info@felixnagel.com>
Sat, 16 Apr 2016 16:47:43 +0000 (18:47 +0200)
committerFelix Nagel <info@felixnagel.com>
Thu, 29 Sep 2016 13:10:47 +0000 (15:10 +0200)
Fix missing classes options defaults in tests.

tests/unit/datepicker/common.js
ui/widgets/datepicker.js

index bc06a89929a92d22c6d8874dc349ab399b49d023..9074b78e6c51126f9fbbeb14c7cfa92f33c69f77 100644 (file)
@@ -8,10 +8,20 @@ common.testWidget( "datepicker", {
        defaults: {
                appendTo: null,
                buttons: [],
-               classes: {},
+               classes: {
+                       "ui-calendar": "ui-corner-all",
+                       "ui-calendar-header-first": "ui-corner-left",
+                       "ui-calendar-header-last": "ui-corner-right",
+                       "ui-calendar-prev": "ui-corner-all",
+                       "ui-calendar-next": "ui-corner-all"
+               },
                disabled: false,
                dateFormat: { date: "short" },
                eachDay: $.noop,
+               icons: {
+                       prevButton: "ui-icon-circle-triangle-w",
+                       nextButton: "ui-icon-circle-triangle-e"
+               },
                labels: {
                        "datePickerRole": "date picker",
                        "nextText": "Next",
index b48ea1cce4e0ba530bbf98b142b63797e4864c4d..95bc0aa33653fc9277142a010e5ebdd0cab7aebb 100644 (file)
@@ -57,7 +57,7 @@ var widget = $.widget( "ui.datepicker", {
        },
 
        calendarOptions: [ "buttons", "classes", "disabled", "dateFormat", "eachDay",
-               "labels", "locale", "max", "min", "numberOfMonths", "showWeek" ],
+               "icons", "labels", "locale", "max", "min", "numberOfMonths", "showWeek" ],
 
        _create: function() {
                this.suppressExpandOnFocus = false;