Module: CommonEngine::FullcalendarUtility

Extended by:
ActiveSupport::Concern
Included in:
ApplicationBaseController
Defined in:
app/controllers/concerns/fullcalendar_utility.rb

Instance Method Summary collapse

Instance Method Details

#prepare_fullcalendarObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/controllers/concerns/fullcalendar_utility.rb', line 10

def prepare_fullcalendar
  @weekday_names = get_weekday_names().to_json.html_safe
  @weekday_short_names = get_weekday_short_names().to_json.html_safe
  @empty_event_title = t('common.empty_event_title')
  @title_format_month = t('format.fullcalendar.title.month')
  @title_format_week = t('format.fullcalendar.title.week').html_safe
  @title_format_day = t('format.fullcalendar.title.day').html_safe
  @month_text = t('format.fullcalendar.button_text.month')
  @week_text = t('format.fullcalendar.button_text.week')
  @day_text = t('format.fullcalendar.button_text.day')
  @today_text = t('format.fullcalendar.button_text.today')
end