Skip to content

Commit

Permalink
Merge pull request #1165 from wishmaster80/master
Browse files Browse the repository at this point in the history
Fixed bug. Keybord left and up do not work after clicking right/down. In...
  • Loading branch information
acrobat committed Jan 1, 2015
2 parents d1af825 + 1214555 commit 047b3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@
newViewDate = new Date(focusDate);
newViewDate.setUTCDate(focusDate.getUTCDate() + dir);
}
if (this.dateWithinRange(newDate)){
if (this.dateWithinRange(newViewDate)){
this.focusDate = this.viewDate = newViewDate;
this.setValue();
this.fill();
Expand Down Expand Up @@ -1238,7 +1238,7 @@
newViewDate = new Date(focusDate);
newViewDate.setUTCDate(focusDate.getUTCDate() + dir * 7);
}
if (this.dateWithinRange(newDate)){
if (this.dateWithinRange(newViewDate)){
this.focusDate = this.viewDate = newViewDate;
this.setValue();
this.fill();
Expand Down

0 comments on commit 047b3f4

Please sign in to comment.