Include datepicker i18n only as needed

* Restore the javascript_tag_for_i18n_datepicker helper (and actually use it)
* Include the datepicker i18n JS in the asset precompilation list
This commit is contained in:
Dan Rice 2016-02-16 22:08:15 -05:00
parent 91849c5316
commit 4b046b98ea
5 changed files with 10 additions and 9 deletions

View file

@ -5,7 +5,7 @@ Rails.application.config.assets.version = '1.0'
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
Rails.application.config.assets.precompile += %w( print.css mobile.css )
Rails.application.config.assets.precompile += %w( print.css mobile.css jquery-ui/datepicker-*.js )
# add /app/assets/swfs to asset pipeline for charts
Rails.application.config.assets.paths << Rails.root.join("app", "assets", "swfs")