Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fullcalendar.yml options not overriding defaults #36

Open
apatel opened this issue Apr 8, 2017 · 0 comments
Open

fullcalendar.yml options not overriding defaults #36

apatel opened this issue Apr 8, 2017 · 0 comments

Comments

@apatel
Copy link

apatel commented Apr 8, 2017

Hi,

Not sure if this gem is still being maintained but figured I'd throw my issue out here. I am adding configs in fullcalendar.yml to override the defaults and some of them are not being overridden and I believe it is because they are being hard set again in app/assets/javascripts/fullcalendar_engine/fullcalendar.js in var defaults = {

This is the contents of my fullcalendar.yml:

mount_path: "/fullcalendar"
layout: 'custom'
height: 1000
defaultView: 'agendaWeek'
timeFormat: "h:mm a{ - h:mm a}"
allDayDefault: false

However, defaultView, timeFormat and allDayDefault are not being set property, they are set to what is in fullcalendar.js. Even configs in config/initializers/configuration.rb are being overridden by what's in fullcalendar.js.

Anyone know how I can get this to work? Thanks for any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant