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

Commit 130d321

Browse files
committed
closes #242
1 parent e72b79d commit 130d321

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
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.12",
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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,11 @@
349349
if (theCalendar.classList) {
350350

351351
theCalendar.classList.add('_720kb-datepicker-open');
352-
// set selected date components (from datepicker input field) on show
353352
dateString = angular.element(angular.element(theCalendar).parent()[0].querySelector('input')).val().replace(/\//g, '-');
354353
date = new Date(dateString);
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');
354+
$scope.selectedMonth = Number($filter('date')(date, 'MM'));
355+
$scope.selectedDay = Number($filter('date')(date, 'dd'));
356+
$scope.selectedYear = Number($filter('date')(date, 'yyyy'));
359357
} else {
360358

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

dist/angular-datepicker.min.css

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

0 commit comments

Comments
 (0)