diff options
Diffstat (limited to 'app/assets/javascripts')
| -rw-r--r-- | app/assets/javascripts/es6_browserified/time_tables/components/ExceptionsInDay.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/es6_browserified/time_tables/components/ExceptionsInDay.js b/app/assets/javascripts/es6_browserified/time_tables/components/ExceptionsInDay.js index e90099283..cc7980b22 100644 --- a/app/assets/javascripts/es6_browserified/time_tables/components/ExceptionsInDay.js +++ b/app/assets/javascripts/es6_browserified/time_tables/components/ExceptionsInDay.js @@ -17,7 +17,7 @@ class ExceptionsInDay extends Component { <div className='td'> <button type='button' - className='btn btn-circle' + className={'btn btn-circle' + (this.props.value.current_month[this.props.index].excluded_date ? ' active' : '')} data-actiontype='remove' onClick={(e) => { $(e.currentTarget).toggleClass('active') @@ -33,7 +33,7 @@ class ExceptionsInDay extends Component { <div className='td'> <button type='button' - className='btn btn-circle' + className={'btn btn-circle' + (this.props.value.current_month[this.props.index].include_date ? ' active' : '')} data-actiontype='add' onClick={(e) => { $(e.currentTarget).toggleClass('active') |
