diff options
author | Mark Longair <mhl@pobox.com> | 2013-11-25 18:02:58 +0000 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-11-26 10:16:47 +0000 |
commit | f91d66d42f517f778cac130466b7cffc7fd8b085 (patch) | |
tree | 84937da3e4d3fde691b65218b1bda631c79ac406 /app/assets/javascripts/application.js | |
parent | 27b0f4016b4dec406261061b4916e02df346b57d (diff) |
Use the jquery-rails-ui gem, just including the modules we need
As far as I can tell, we only use the 'tabs' module in
admin and 'datepicker' on the user-facing part of the site.
The advantage of using this packaging of the gem is that
its assets are in the gem, which simplifies things greatly -
otherwise we'd end up doing something like rewrite the jquery-ui
CSS to SCSS, referencing the image assets via sass-rails helpers
or keep them in their expected paths in public or something.
(Thanks to Louise Crow for pointing out the problem of just
moving jquery-ui's image assets into the asset pipeline.)
Diffstat (limited to 'app/assets/javascripts/application.js')
-rw-r--r-- | app/assets/javascripts/application.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index f2413bde9..d8aed6346 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -1,5 +1,6 @@ // ... //= require jquery +//= require jquery.ui.datepicker //= require jquery.cookie //= require general //= require ba-throttle-debounce |