diff options
| author | cedricnjanga | 2017-09-06 01:06:47 +0200 | 
|---|---|---|
| committer | cedricnjanga | 2017-09-06 09:47:25 +0200 | 
| commit | 53804667d4ba62e29ff687995dfa6d2566139075 (patch) | |
| tree | 2a1ca835d7d7abccc2e905c6872333ff4916fbb5 /config/initializers/assets.rb | |
| parent | bcea52e515f1eef544da5cfcbfb5e900c69b1081 (diff) | |
| download | chouette-core-53804667d4ba62e29ff687995dfa6d2566139075.tar.bz2 | |
Updated imports#index date filter : used the same logic for the Calendar#index date filter (ransackable scope)
I realized that we could submit the form with incomplete date which caused an 500 error.
So I added a small JS script to prevent user from subnitting filter form with incomplete dates
Since it was really similar with previous work I added two folders : /helpers & /filters to be more DRY
The JS files are loaded in 4 views for the moment, hence the update in the assets.rb file
Diffstat (limited to 'config/initializers/assets.rb')
| -rw-r--r-- | config/initializers/assets.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index b53dba3d8..2ee5982f3 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -5,4 +5,4 @@ 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( base.css es6_browserified/*.js ) +Rails.application.config.assets.precompile += %w( base.css es6_browserified/*.js helpers/*.js filters/*.js) | 
