This repository was archived by the owner on Feb 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2828 < div class ="datepicker "
2929 date-format ="MMMM d, y "
3030 date-min-limit ="2014/08/07 "
31- date-max-limit ="2018 /09/07 "
31+ date-max-limit ="2016 /09/07 "
3232 button-prev ='<i class="fa fa-arrow-circle-left"></i> '
3333 button-next ='<i class="fa fa-arrow-circle-right"></i> '>
3434 < input ng-model ="date2 " type ="text " class ="angular-datepicker-input "/>
4444</ div >
4545< script type ="text/javascript " src ="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js "> </ script >
4646< script type ="text/javascript " src ="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular-route.min.js "> </ script >
47+ < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/angular-i18n/1.4.6/angular-locale_es.js "> </ script >
4748< script type ="text/javascript " src ="src/js/angular-datepicker.js "> </ script >
4849< script type ="text/javascript " src ="assets/js/index.js "> </ script >
4950</ body >
Original file line number Diff line number Diff line change 44
55 var A_DAY_IN_MILLISECONDS = 86400000
66 , isMobile = ( function isMobile ( ) {
7-
7+
88 if ( navigator . userAgent &&
99 ( navigator . userAgent . match ( / A n d r o i d / i) ||
1010 navigator . userAgent . match ( / w e b O S / i) ||
405405 $scope . setNewYear = function setNewYear ( year ) {
406406
407407 //deactivate selected day
408- $scope . day = undefined ;
408+ if ( ! $scope . isMobile ) {
409+ $scope . day = undefined ;
410+ }
409411
410412 if ( $scope . dateMaxLimit &&
411413 $scope . year < Number ( year ) ) {
You can’t perform that action at this time.
0 commit comments