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

Commit

Permalink
Fix bug related to January
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcode committed Jun 3, 2016
1 parent 2be021b commit 0ebcb5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions source/ngComboDatePicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* ngComboDatePicker v1.2.1
* ngComboDatePicker v1.2.2
* http://github.com/jfmdev/ngComboDatePicker
* «Copyright 2015 Jose F. Maldonado»
* License: LGPLv3 (http://www.gnu.org/licenses/lgpl-3.0.html)
Expand Down Expand Up @@ -201,8 +201,8 @@ angular.module("ngComboDatePicker", [])

// When a combo box is changed, update the model and verify which values in the combo boxes for dates and months can be show.
$scope.onChange = function(part) {
// Update model.
if($scope.date != null && $scope.month != null && $scope.year != null && $scope.date != '' && $scope.month != '' && $scope.year != '') {
// Update model.
if($scope.date != null && $scope.date != '' && !isNaN(parseInt($scope.month)) && $scope.year != null && $scope.year != '') {
var maxDay = maxDate($scope.month+1, $scope.year);

var hours = 0, minutes = 0, seconds = 0, milliseconds = 0;
Expand Down
4 changes: 2 additions & 2 deletions source/ngComboDatePicker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ebcb5b

Please sign in to comment.