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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
45kb committed Mar 16, 2017
1 parent 4525a7e commit 7849b97
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-datepicker",
"version": "2.1.14",
"version": "2.1.15",
"description": "A datepicker directive for angularjs.",
"authors": [
"Filippo Oretti <filippo.oretti@gmail.com",
Expand Down
11 changes: 11 additions & 0 deletions dist/angular-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,17 @@
classHelper.add(theCalendar, '_720kb-datepicker-open');
}
$scope.today = new Date();
$timeout(function timeoutForYears() {
if ($scope.selectedDay) {
$scope.year = $scope.selectedYear;
$scope.monthNumber = $scope.selectedMonth;
} else {
$scope.year = $scope.today.getFullYear();
$scope.monthNumber = $scope.today.getMonth() + 1;
}
$scope.month = $filter('date')(new Date($scope.year, $scope.monthNumber - 1), 'MMMM');
setDaysInMonth($scope.monthNumber, $scope.year);
}, 0);
}
, checkToggle = function checkToggle() {
if (!$scope.datepickerToggle) {
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-datepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-datepicker.sourcemap.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-datepicker",
"version": "2.1.14",
"version": "2.1.15",
"description": "A datepicker directive for angularjs.",
"homepage": "http://720kb.github.io/angular-datepicker",
"keywords": [
Expand Down

0 comments on commit 7849b97

Please sign in to comment.