Skip to content

Commit 32df615

Browse files
committed
merge latest master 1.1.1 and fix some compats
1 parent cdaf283 commit 32df615

28 files changed

Lines changed: 1195 additions & 248 deletions

.hgtags

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
b965e03abfcb10d66c8dad96d54d6f8e1c5d8501 v1.0.0
2+
7a490672b362af7640bbeb68553a0e0a5a95cb9e v1.0.1
3+
9a730557f14d79c2ce2d28eacb24bdf52ac2e042 1.0.2-rc.1
4+
62604d506e5ba9d85ee6c2d86723b9b3d817e7bd 1.0.2-rc.1.1
5+
f6211e251c021331decc16bfbcf25577dd354ef4 1.0.2-rc.2
6+
493d2332f0cb7f2dd308c442920da86063ff2e0f 1.0.2
7+
77a6755dc3df3ada745024648535562587fab630 1.1.0
8+
fe9e4106def42741adba1606245ab0eab32acb55 1.1.1

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,58 @@
11
Changelog
22
=========
33

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+
456
v1.0.1
557
------
658

0 commit comments

Comments
 (0)