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

Commit 2b81bfa

Browse files
committed
new release
1 parent 7a72172 commit 2b81bfa

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-datepicker",
3-
"version": "2.1.11",
3+
"version": "2.1.13",
44
"description": "A datepicker directive for angularjs.",
55
"authors": [
66
"Filippo Oretti <filippo.oretti@gmail.com",

dist/angular-datepicker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,13 @@
349349
if (theCalendar.classList) {
350350

351351
theCalendar.classList.add('_720kb-datepicker-open');
352+
// set selected date components (from datepicker input field) on show
352353
dateString = angular.element(angular.element(theCalendar).parent()[0].querySelector('input')).val().replace(/\//g, '-');
353354
date = new Date(dateString);
354-
$scope.selectedMonth = Number($filter('date')(date, 'MM'));
355-
$scope.selectedDay = Number($filter('date')(date, 'dd'));
356-
$scope.selectedYear = Number($filter('date')(date, 'yyyy'));
355+
$scope.selectedMonth = $scope.monthNumber = Number($filter('date')(date, 'MM'));
356+
$scope.selectedDay = $scope.day = Number($filter('date')(date, 'dd'));
357+
$scope.selectedYear = $scope.year = Number($filter('date')(date, 'yyyy'));
358+
$scope.month = $filter('date')(new Date($scope.year, $scope.monthNumber - 1), 'MMMM');
357359
} else {
358360

359361
classHelper.add(theCalendar, '_720kb-datepicker-open');

dist/angular-datepicker.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-datepicker.sourcemap.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-datepicker",
3-
"version": "2.1.11",
3+
"version": "2.1.13",
44
"description": "A datepicker directive for angularjs.",
55
"homepage": "http://720kb.github.io/angular-datepicker",
66
"keywords": [

0 commit comments

Comments
 (0)