Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Fix for bug when min and max were not specified and forced datepi…
Browse files Browse the repository at this point in the history
…cker to stuck at 1970
  • Loading branch information
nazar-pc committed Jan 14, 2015
1 parent 079bbd6 commit e068562
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "pickmeup",
"version" : "2.6.1",
"version" : "2.6.2",
"homepage" : "https://github.com/nazar-pc/PickMeUp",
"authors" : [
"Nazar Mokrynskyi <nazar@mokrynskyi.com>"
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.6.2 (15 January, 2015)
* Fix for bug when `min` and `max` were not specified and forced datepicker to stuck at 1970, fixes [#49](https://github.com/nazar-pc/PickMeUp/issues/49)

2.6.1 (13 January, 2015)
* Fix for bug when specified `max` date in the middle of the month caused inability to switch to that month

Expand Down
4 changes: 2 additions & 2 deletions js/jquery.pickmeup.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
current_cal = Math.floor(options.calendars / 2),
actual_date = options.date,
current_date = options.current,
min_date = new Date(options.min),
max_date = new Date(options.max),
min_date = options.min ? new Date(options.min) : null,
max_date = options.max ? new Date(options.max) : null,
local_date,
header,
html,
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.pickmeup.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"date",
"calendar"
],
"version" : "2.6.1",
"version" : "2.6.2",
"homepage" : "https://github.com/nazar-pc/PickMeUp",
"author" : {
"name" : "Nazar Mokrynskyi",
Expand Down
2 changes: 1 addition & 1 deletion pickmeup.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"date",
"calendar"
],
"version" : "2.6.1",
"version" : "2.6.2",
"homepage" : "https://github.com/nazar-pc/PickMeUp",
"author" : {
"name" : "Nazar Mokrynskyi",
Expand Down

0 comments on commit e068562

Please sign in to comment.