@@ -15,9 +15,9 @@ var DateTimePickerDays = React.createClass({
1515 tableChildren = [
1616 DOM . thead ( { key : 'th' } , [
1717 DOM . tr ( { key : 'h' } , [
18- DOM . th ( { key : 'p' , className : 'prev ' } , DOM . button ( { onClick : this . props . subtractTime ( 1 , 'months' ) , type : 'button' } , '‹' ) ) ,
19- DOM . th ( { key : 's' , className : 'switch ' , onClick : this . props . showView ( 'months' ) , colSpan : 5 , 'data-value' : this . props . viewDate . month ( ) } , locale . months ( date ) + ' ' + date . year ( ) ) ,
20- DOM . th ( { key : 'n' , className : 'next ' } , DOM . button ( { onClick : this . props . addTime ( 1 , 'months' ) , type : 'button' } , '›' ) )
18+ DOM . th ( { key : 'p' , className : 'rdtPrev ' } , DOM . button ( { onClick : this . props . subtractTime ( 1 , 'months' ) , type : 'button' } , '‹' ) ) ,
19+ DOM . th ( { key : 's' , className : 'rdtSwitch ' , onClick : this . props . showView ( 'months' ) , colSpan : 5 , 'data-value' : this . props . viewDate . month ( ) } , locale . months ( date ) + ' ' + date . year ( ) ) ,
20+ DOM . th ( { key : 'n' , className : 'rdtnext ' } , DOM . button ( { onClick : this . props . addTime ( 1 , 'months' ) , type : 'button' } , '›' ) )
2121 ] ) ,
2222 DOM . tr ( { key : 'd' } , this . getDaysOfWeek ( locale ) . map ( function ( day ) { return DOM . th ( { key : day , className : 'dow' } , day ) ; } ) )
2323 ] ) ,
@@ -69,23 +69,23 @@ var DateTimePickerDays = React.createClass({
6969 var lastDay = prevMonth . clone ( ) . add ( 42 , 'd' ) ;
7070
7171 while ( prevMonth . isBefore ( lastDay ) ) {
72- classes = 'day ' ;
72+ classes = 'rdtDay ' ;
7373 currentDate = prevMonth . clone ( ) ;
7474
7575 if ( prevMonth . year ( ) < currentYear || prevMonth . month ( ) < currentMonth )
76- classes += ' old ' ;
76+ classes += ' rdtOld ' ;
7777 else if ( prevMonth . year ( ) > currentYear || prevMonth . month ( ) > currentMonth )
78- classes += ' new ' ;
78+ classes += ' rdtNew ' ;
7979
8080 if ( selected && prevMonth . isSame ( { y : selected . year ( ) , M : selected . month ( ) , d : selected . date ( ) } ) )
81- classes += ' active ' ;
81+ classes += ' rdtActive ' ;
8282
8383 if ( prevMonth . isSame ( moment ( ) , 'day' ) )
84- classes += ' today ' ;
84+ classes += ' rdtToday ' ;
8585
8686 disabled = ! isValid ( currentDate , selected ) ;
8787 if ( disabled )
88- classes += ' disabled ' ;
88+ classes += ' rdtDisabled ' ;
8989
9090 dayProps = {
9191 key : prevMonth . format ( 'M_D' ) ,
@@ -119,7 +119,7 @@ var DateTimePickerDays = React.createClass({
119119 var date = this . props . selectedDate || this . props . viewDate ;
120120 return DOM . tfoot ( { key : 'tf' } ,
121121 DOM . tr ( { } ,
122- DOM . td ( { onClick : this . props . showView ( 'time' ) , colSpan : 7 , className : 'timeToggle ' } , date . format ( this . props . timeFormat ) )
122+ DOM . td ( { onClick : this . props . showView ( 'time' ) , colSpan : 7 , className : 'rdtTimeToggle ' } , date . format ( this . props . timeFormat ) )
123123 )
124124 ) ;
125125 } ,
0 commit comments