aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/es6_browserified/time_tables/actions/index.js2
-rw-r--r--app/views/time_tables/show.rabl1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/es6_browserified/time_tables/actions/index.js b/app/assets/javascripts/es6_browserified/time_tables/actions/index.js
index d06eaecff..39e9aba02 100644
--- a/app/assets/javascripts/es6_browserified/time_tables/actions/index.js
+++ b/app/assets/javascripts/es6_browserified/time_tables/actions/index.js
@@ -3,7 +3,7 @@ const actions = {
let weekDays = ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa']
let array = []
weekDays.map((day, i) =>{
- array[i] = (str.indexOf(day) != -1) ? true: false
+ array[i] = (str.indexOf(day) != -1) ? true : false
})
return array
diff --git a/app/views/time_tables/show.rabl b/app/views/time_tables/show.rabl
index a4434c518..04238c716 100644
--- a/app/views/time_tables/show.rabl
+++ b/app/views/time_tables/show.rabl
@@ -8,6 +8,7 @@ node do |tt|
day_types: %w(monday tuesday wednesday thursday friday saturday sunday).select{ |d| tt.send(d) }.map{ |d| tt.human_attribute_name(d).first(2)}.join(''),
current_month: tt.month_inspect(Date.today),
periode_range: month_periode_enum(3),
+ current_periode_range: Date.today.beginning_of_month
}
end