File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,10 @@ var DateTimePickerYears = React.createClass({
36
36
classes = 'rdtYear' ;
37
37
currentYear = this . props . viewDate . clone ( ) . set (
38
38
{ year : year , month : irrelevantMonth , date : irrelevantDate } ) ;
39
- if ( i === - 1 | i === 10 )
40
- classes += ' rdtOld' ;
39
+
40
+ // Not sure what 'rdtOld' is for, commenting out for now as it's not working properly
41
+ // if ( i === -1 | i === 10 )
42
+ // classes += ' rdtOld';
41
43
42
44
noOfDaysInYear = currentYear . endOf ( 'year' ) . format ( 'DDD' ) ;
43
45
daysInYear = Array . from ( { length : noOfDaysInYear } , function ( e , i ) {
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ describe( 'Datetime', function(){
720
720
createDatetime ( { viewMode : 'years' , isValidDate : function ( current ) {
721
721
return current . isBefore ( moment ( '2016-01-01' , 'YYYY-MM-DD' ) ) ;
722
722
} } ) ;
723
- assert . equal ( dt . year ( 0 ) . className , 'rdtYear rdtOld ' ) ;
723
+ assert . equal ( dt . year ( 0 ) . className , 'rdtYear' ) ;
724
724
assert . equal ( dt . year ( 6 ) . className , 'rdtYear' ) ;
725
725
assert . equal ( dt . year ( 7 ) . className , 'rdtYear rdtDisabled' ) ;
726
726
} ) ;
@@ -734,7 +734,7 @@ describe( 'Datetime', function(){
734
734
assert . equal ( dt . month ( 5 ) . className , 'rdtMonth rdtDisabled' ) ;
735
735
// Go to year view
736
736
ev . click ( dt . switcher ( ) ) ;
737
- assert . equal ( dt . year ( 0 ) . className , 'rdtYear rdtOld ' ) ;
737
+ assert . equal ( dt . year ( 0 ) . className , 'rdtYear' ) ;
738
738
assert . equal ( dt . year ( 9 ) . className , 'rdtYear rdtDisabled' ) ;
739
739
// Go back initial month view, nothing should be changed
740
740
ev . click ( dt . year ( 8 ) ) ;
You can’t perform that action at this time.
0 commit comments