aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorThomas Haddad2017-05-10 11:13:30 +0200
committerThomas Haddad2017-05-10 11:13:47 +0200
commitb4565d58768b16dff30ad0453053b28e19fafbc8 (patch)
treede966bea0ef2184e5ec0e47bcbb494cc6c65886b /app/assets/javascripts
parent7edd1348220b0b1318099d86aca69ac5562b83eb (diff)
downloadchouette-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.js4
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')