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

Commit 791b3d5

Browse files
committed
fix for active day thanks to @vaggelanos #276
1 parent 9504a0a commit 791b3d5

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
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.21",
3+
"version": "2.1.22",
44
"description": "A datepicker directive for angularjs.",
55
"authors": [
66
"Filippo Oretti <filippo.oretti@gmail.com",

dist/angular-datepicker.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,14 @@
444444

445445
return false;
446446
}
447+
if (dateFormat) {
448+
date = localDateTimestamp(thisInput[0].value.toString(), dateFormat);
449+
} else {
450+
date = new Date(thisInput[0].value.toString());
451+
}
452+
$scope.selectedMonth = Number($filter('date')(date, 'MM'));
453+
$scope.selectedDay = Number($filter('date')(date, 'dd'));
454+
$scope.selectedYear = Number($filter('date')(date, 'yyyy'));
447455
return $scope.$eval($scope.datepickerShow);
448456
}
449457
, unregisterDataSetWatcher = $scope.$watch('dateSet', function dateSetWatcher(newValue) {

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.21",
3+
"version": "2.1.22",
44
"description": "A datepicker directive for angularjs.",
55
"homepage": "http://720kb.github.io/angular-datepicker",
66
"keywords": [

0 commit comments

Comments
 (0)