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

Commit 445fc51

Browse files
committed
date-typer little fix
1 parent d95c839 commit 445fc51

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
date-set="2015/11/26"
3131
date-min-limit="2014/08/07"
3232
date-max-limit="2016/09/07"
33+
date-typer="true"
3334
date-disabled-dates="['2014/08/07', '2014/08/08' ]"
3435
button-prev='<i class="fa fa-arrow-circle-left"></i>'
3536
button-next='<i class="fa fa-arrow-circle-right"></i>'>

src/js/angular-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,12 @@
509509

510510
$scope.month = $filter('date')(date, 'MMMM');//december-November like
511511
$scope.monthNumber = Number($filter('date')(date, 'MM')); // 01-12 like
512+
$scope.day = Number($filter('date')(date, 'dd')); //01-31 like
512513

513514
if (date.getFullYear().toString().length === 4) {
514515
$scope.year = Number($filter('date')(date, 'yyyy'));//2014 like
515516
}
516517
setDaysInMonth($scope.monthNumber, $scope.year);
517-
$scope.day = Number($filter('date')(date, 'dd')); //01-31 like
518518
});
519519
}
520520
} catch (e) {

0 commit comments

Comments
 (0)