Skip to content

Commit

Permalink
fixes #874
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Mar 4, 2015
1 parent d00e39d commit b2a71de
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build/css/bootstrap-datetimepicker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Datetimepicker for Bootstrap 3
//! version : 4.7.14
* ! version : 4.7.14
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
.bootstrap-datetimepicker-widget {
Expand Down
2 changes: 1 addition & 1 deletion build/css/bootstrap-datetimepicker.min.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Datetimepicker for Bootstrap 3
//! version : 4.7.14
* ! version : 4.7.14
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
.bootstrap-datetimepicker-widget {
Expand Down
2 changes: 1 addition & 1 deletion build/js/bootstrap-datetimepicker.min.js

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions src/js/bootstrap-datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,8 @@
if (options.disabledDates && isInDisabledDates(targetMoment) && granularity !== 'M') {
return false;
}
if (options.enabledDates) {
if (isInEnabledDates(targetMoment)) {
return true;
} else {
return false;
}
if (options.enabledDates && isInEnabledDates(targetMoment) && granularity !== 'M') {
return false;
}
if (options.minDate && targetMoment.isBefore(options.minDate, granularity)) {
return false;
Expand Down Expand Up @@ -1422,7 +1418,7 @@
setValue(options.maxDate);
}
if (viewDate.isAfter(parsedDate)) {
viewDate = parsedDate;
viewDate = parsedDate.clone();
}
update();
return picker;
Expand Down Expand Up @@ -1458,7 +1454,7 @@
setValue(options.minDate);
}
if (viewDate.isBefore(parsedDate)) {
viewDate = parsedDate;
viewDate = parsedDate.clone();
}
update();
return picker;
Expand Down
2 changes: 1 addition & 1 deletion src/less/_bootstrap-datetimepicker.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Datetimepicker for Bootstrap 3
//! version : 4.7.14
* ! version : 4.7.14
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
@bs-datetimepicker-timepicker-font-size: 1.2em;
Expand Down

0 comments on commit b2a71de

Please sign in to comment.