aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts/admin.js
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-11-25 18:02:58 +0000
committerMark Longair <mhl@pobox.com>2013-11-26 10:16:47 +0000
commitf91d66d42f517f778cac130466b7cffc7fd8b085 (patch)
tree84937da3e4d3fde691b65218b1bda631c79ac406 /app/assets/javascripts/admin.js
parent27b0f4016b4dec406261061b4916e02df346b57d (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/admin.js')
-rw-r--r--app/assets/javascripts/admin.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/admin.js b/app/assets/javascripts/admin.js
index f7684f3be..0b5d56525 100644
--- a/app/assets/javascripts/admin.js
+++ b/app/assets/javascripts/admin.js
@@ -1,5 +1,6 @@
// ...
//= require jquery
+//= require jquery.ui.tabs
//= require admin/bootstrap-collapse
//= require admin/bootstrap-tab
//= require admin/admin