diff options
| author | Thomas Haddad | 2017-05-10 11:13:30 +0200 |
|---|---|---|
| committer | Thomas Haddad | 2017-05-10 11:13:47 +0200 |
| commit | b4565d58768b16dff30ad0453053b28e19fafbc8 (patch) | |
| tree | de966bea0ef2184e5ec0e47bcbb494cc6c65886b /app/assets/javascripts | |
| parent | 7edd1348220b0b1318099d86aca69ac5562b83eb (diff) | |
| download | chouette-core-b4565d58768b16dff30ad0453053b28e19fafbc8.tar.bz2 | |
Fix exceptions not being shown active when reloading
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
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') |
