Skip to content

Commit

Permalink
fixed min max dates handling, closes t1m0n#123
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0n committed Sep 21, 2016
1 parent 28c56d2 commit ec46ba1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/js/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1895,10 +1895,10 @@

switch (this.d.view) {
case 'days':
if (!this.d._isInRange(new Date(y, m-1, d), 'month')) {
if (!this.d._isInRange(new Date(y, m-1, 1), 'month')) {
this._disableNav('prev')
}
if (!this.d._isInRange(new Date(y, m+1, d), 'month')) {
if (!this.d._isInRange(new Date(y, m+1, 1), 'month')) {
this._disableNav('next')
}
break;
Expand Down
Loading

0 comments on commit ec46ba1

Please sign in to comment.