|
1 | 1 | Changelog |
2 | 2 | ========= |
3 | 3 |
|
| 4 | +1.1.1 |
| 5 | +---------- |
| 6 | + |
| 7 | +Fixes a bug when setting startDate or endDate during initialization. |
| 8 | + |
| 9 | + |
| 10 | +1.1.0 |
| 11 | +---------- |
| 12 | + |
| 13 | +New features: |
| 14 | +* Date range picker. |
| 15 | +* Data API / noConflict. |
| 16 | +* `getDate` and `setDate` methods. |
| 17 | +* `format` method for events; this allows you to easily format the `date` associated with the event. |
| 18 | +* New options: |
| 19 | + * `beforeShowDay` option: a dev-provided function that can enable/disable dates, add css classes, and add tooltips. |
| 20 | + * `clearBtn`, a button for resetting the picker. |
| 21 | + |
| 22 | +Internal changes: |
| 23 | +* Cleaner and more reliable method for extracting options from all potential sources (defaults, locale overrides, data-attrs, and instantiation options, in that order). This also populates `$.fn.datepicker.defaults` with the default values, and uses this hash as the actual source of defaults, meaning you can globally change the default value for a given option. |
| 24 | + |
| 25 | +Bugs squashed: |
| 26 | +* Resolved a conflict with bootstrap's native `.switch` class. |
| 27 | +* Fixed a bug with components where they would be stuck with a stale value when editing the value manually. |
| 28 | +* The `date` attributes on events are now local dates instead of internal UTC dates. |
| 29 | +* Separate `Date` objects for internal selected and view date references. |
| 30 | +* Clicking multiple times inside inputs no longer hides the picker. |
| 31 | + |
| 32 | +Minor improvements: |
| 33 | +* Better text color for highlighted "today" date. |
| 34 | +* Last year in decade view now marked as "new" instead of "old". |
| 35 | +* Formats now properly handle trailing separators. |
| 36 | + |
| 37 | +Locale changes: |
| 38 | +* Added Albanian, Estonian, and Macedonian |
| 39 | +* Added `weekStart` for Russian |
| 40 | +* Added `weekStart` and `format` for Finnish |
| 41 | + |
| 42 | +Potentially backward-incompatible changes: |
| 43 | +* Options revamp: |
| 44 | + * This fixes bugs in the correlation of some data-attrs to their associated option names. If you use `data-date-weekstart`, `data-date-startdate`, or `data-date-enddate`, you should update these to `data-date-week-start`, `data-date-start-date`, or `data-date-end-date`, respectively. |
| 45 | + * All options for datepicker are now properties on the datepicker's `o` property; options are no longer stored on the Datepicker instance itself. If you have code that accesses options stored on the datepicker instance (eg, `datepicker.format`), you will need to update it to access those options via the `o` property (eg, `datepicker.o.format`). "Raw" options are available via the `_o` property. |
| 46 | + |
| 47 | +1.0.2 |
| 48 | +---------- |
| 49 | + |
| 50 | +Small optimizations release |
| 51 | + |
| 52 | +* Reduced the number of times `update` is called on initialization. |
| 53 | +* Datepicker now detaches the picker dropdown when it is hidden, and appends it when shown. This removes the picker from the DOM when it is not in use. |
| 54 | +* No longer listens to document/window events unless picker is visible. |
| 55 | + |
4 | 56 | v1.0.1 |
5 | 57 | ------ |
6 | 58 |
|
|
0 commit comments