@@ -44,7 +44,7 @@ angular.module('ionic-datepicker.provider', [])
4444 $scope . currentDate . setFullYear ( $scope . currentDate . getFullYear ( ) ) ;
4545 }
4646 $scope . currentDate . setMonth ( $scope . currentDate . getMonth ( ) - 1 ) ;
47- $scope . currentMonth = $scope . mainObj . monthsList [ $scope . currentDate . getMonth ( ) ] ;
47+ $scope . data . currentMonth = $scope . mainObj . monthsList [ $scope . currentDate . getMonth ( ) ] ;
4848 $scope . data . currentYear = $scope . currentDate . getFullYear ( ) ;
4949 refreshDateList ( $scope . currentDate ) ;
5050 } ;
@@ -56,7 +56,7 @@ angular.module('ionic-datepicker.provider', [])
5656 }
5757 $scope . currentDate . setDate ( 1 ) ;
5858 $scope . currentDate . setMonth ( $scope . currentDate . getMonth ( ) + 1 ) ;
59- $scope . currentMonth = $scope . mainObj . monthsList [ $scope . currentDate . getMonth ( ) ] ;
59+ $scope . data . currentMonth = $scope . mainObj . monthsList [ $scope . currentDate . getMonth ( ) ] ;
6060 $scope . data . currentYear = $scope . currentDate . getFullYear ( ) ;
6161 refreshDateList ( $scope . currentDate ) ;
6262 } ;
@@ -154,9 +154,9 @@ angular.module('ionic-datepicker.provider', [])
154154 $scope . rows = [ 0 , 7 , 14 , 21 , 28 , 35 ] ;
155155 $scope . cols = [ 0 , 1 , 2 , 3 , 4 , 5 , 6 ] ;
156156
157- $scope . currentMonth = $scope . mainObj . monthsList [ currentDate . getMonth ( ) ] ;
157+ $scope . data . currentMonth = $scope . mainObj . monthsList [ currentDate . getMonth ( ) ] ;
158158 $scope . data . currentYear = currentDate . getFullYear ( ) ;
159- $scope . currentMonthSelected = angular . copy ( $scope . currentMonth ) ;
159+ $scope . data . currentMonthSelected = angular . copy ( $scope . data . currentMonth ) ;
160160 $scope . currentYearSelected = angular . copy ( $scope . data . currentYear ) ;
161161 $scope . numColumns = 7 ;
162162 }
0 commit comments