Skip to content

Commit

Permalink
Fixed bug. Keybord left and up do not work after clicking right/down.…
Browse files Browse the repository at this point in the history
… In case when startDate = +1 and date was not set.
  • Loading branch information
wishmaster80 committed Nov 22, 2014
1 parent 8bc254a commit 1214555
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 @@ -1151,7 +1151,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 @@ -1179,7 +1179,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 1214555

Please sign in to comment.