tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 108 forks source link

monthNamesShort - Doesn't Work #22

Closed nicclark closed 9 years ago

nicclark commented 9 years ago

Added to datepickerOptions as so and no adjustment. Am I missing something? datepickerOptions : { initialText : 'Select By Date...', monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], numberOfMonths : 1, minDate: 0, maxDate: 180,
}

op16 commented 9 years ago

First, you have given the default value for monthNamesShort, so no changes are to be expected.

Second, contrary to the datepicker documentation, the short form is used only in the month dropdown, see this example.

Also, initialText is not a datepicker option, but a daterangepicker option, so it goes one level up in the options object.

nicclark commented 9 years ago

Somehow I missed it only being for the dropdown. I'll look into other solutions. Thanks

nicclark commented 9 years ago

So simple... datepickerOptions : { monthNames: [ "Jan", "Feb", "Mar", "Apr", "Mar", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec" ] }