Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Mead-Robins committed Dec 2, 2016
2 parents 10130ff + 5f15c0e commit 53d48ae
Show file tree
Hide file tree
Showing 8 changed files with 180 additions and 60 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.c9revisions
.c9
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Changelog

## 1.5.1 - 2016-10-28

- Only set attribute if field is bound, see #567

## 1.5.0 - 2016-10-27

- Make Pikaday accessibile, see #522
- Add possibility to reset the max and min date to the date picker
- Make Pikaday XHTML compatible, see #492
- Remove unnecessary setTimeout call, fixes #496
- Make disabled buttons not clickable in IE 10 and below, fixes #288
- Show days in next and previous months

## 1.4.0 - 2015-10-30

- Fix touch device support, see #374, #276, #301, #303, #324, #366 and #386
- Add theme example with triangles added to the dropdowns, see #380
- Fix touch device support, see #374
- Add possibility to reset the max and min date to the date picker

## 1.3.3 - 2015-02-17

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pikaday

![Pikaday Screenshot][screenshot]

**Production ready?** Since version 1.0.0 Pikaday is stable and used in production. If you do however find bugs or have feature requests please submit them to the [GitHub issue tracker][issues].
**Production ready?** Since version 1.0.0 Pikaday is stable and used in production. If you do however find bugs or have feature requests please submit them to the [GitHub issue tracker][issues].
Also see the [changelog](CHANGELOG.md)


Expand Down Expand Up @@ -50,7 +50,7 @@ var picker = new Pikaday({
field.parentNode.insertBefore(picker.el, field.nextSibling);
```

For advanced formatting load [Moment.js][moment] prior to Pikaday:
For advanced formatting load [Moment.js][moment] prior to Pikaday:
See the [moment.js example][] for a full version.

```html
Expand Down Expand Up @@ -79,7 +79,7 @@ Pikaday has many useful options:
* `bound` automatically show/hide the datepicker on `field` focus (default `true` if `field` is set)
* `position` preferred position of the datepicker relative to the form field, e.g.: `top right`, `bottom right` **Note:** automatic adjustment may occur to avoid datepicker from being displayed outside the viewport, see [positions example][] (default to 'bottom left')
* `reposition` can be set to false to not reposition datepicker within the viewport, forcing it to take the configured `position` (default: true)
* `container` DOM node to render calendar into, see [container example][] (default: undefined)
* `container` DOM node to render calendar into, see [container example][] (default: undefined)
* `format` the default output format for `.toString()` and `field` value (requires [Moment.js][moment] for custom formatting)
* `formatStrict` the default flag for moment's strict date parsing (requires [Moment.js][moment] for custom formatting)
* `defaultDate` the initial date to view when first opened
Expand All @@ -106,7 +106,7 @@ Pikaday has many useful options:

## jQuery Plugin

The normal version of Pikaday does not require jQuery, however there is a jQuery plugin if that floats your boat (see `plugins/pikaday.jquery.js` in the repository). This version requires jQuery, naturally, and can be used like other plugins:
The normal version of Pikaday does not require jQuery, however there is a jQuery plugin if that floats your boat (see `plugins/pikaday.jquery.js` in the repository). This version requires jQuery, naturally, and can be used like other plugins:
See the [jQuery example][] for a full version.

```html
Expand All @@ -126,15 +126,15 @@ $('.datepicker').eq(0).pikaday('show').pikaday('gotoYear', 2042);

## AMD support

If you use a modular script loader than Pikaday is not bound to the global object and will fit nicely in your build process. You can require Pikaday just like any other module.
If you use a modular script loader than Pikaday is not bound to the global object and will fit nicely in your build process. You can require Pikaday just like any other module.
See the [AMD example][] for a full version.

```javascript
require(['pikaday'], function(Pikaday) {
var picker = new Pikaday({ field: document.getElementById('datepicker') });
});
```
The same applies for the jQuery plugin mentioned above.
The same applies for the jQuery plugin mentioned above.
See the [jQuery AMD example][] for a full version.

```javascript
Expand Down Expand Up @@ -272,11 +272,11 @@ You must provide 12 months and 7 weekdays (with abbreviations). Always specify w

### Timepicker

Pikaday is a pure datepicker. It will not support picking a time of day. However, there have been efforts to add time support to Pikaday.
Pikaday is a pure datepicker. It will not support picking a time of day. However, there have been efforts to add time support to Pikaday.
See [#1][issue1] and [#18][issue18]. These reside in their own fork.

You can use the work [@owenmead][owenmead] did most recently at [owenmead/Pikaday][owen Pika]
A more simple time selection approach done by [@xeeali][xeeali] at [xeeali/Pikaday][xeeali Pika] is based on version 1.2.0.
You can use the work [@owenmead][owenmead] did most recently at [owenmead/Pikaday][owen Pika]
A more simple time selection approach done by [@xeeali][xeeali] at [xeeali/Pikaday][xeeali Pika] is based on version 1.2.0.
Also [@stas][stas] has a fork [stas/Pikaday][stas Pika], but is now quite old


Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pikaday",
"repo": "dbushell/Pikaday",
"description": "A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS",
"version": "1.4.0",
"version": "1.5.1",
"keywords": [
"datepicker",
"calendar",
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2>What is this?</h2>
{
field: document.getElementById('datepicker'),
firstDay: 1,
minDate: new Date(2000, 0, 1),
minDate: new Date(),
maxDate: new Date(2020, 12, 31),
yearRange: [2000,2020]
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pikaday",
"version": "1.4.0",
"version": "1.5.1",
"description": "A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS",
"keywords": [
"datepicker",
Expand Down
Loading

0 comments on commit 53d48ae

Please sign in to comment.