-
-
Notifications
You must be signed in to change notification settings - Fork 536
Upgrading jquery
mattr- edited this page Oct 16, 2012
·
5 revisions
This page explains how to update jQuery and jQuery UI for use with Tracks
This is a manual process involving the following steps:
- Download the UI zip from jqueryui.com using the custom download
- Check all modules
- Select Sunny as the theme
- Select the latest version
- Click download
- Remove old ui files
git rm -r public/stylesheets/imagesgit rm vendor/assets/stylesheets/jquery-ui-XX.custom.jsgit rm vendor/assets/javascripts/jquery-ui-XX.custom.min.js
- Add new ui files
- From
/css/sunnyin the zip, copy all (css and images) tovendor/assets/stylesheets. Yes, the images need to be in the stylesheets directory for jQuery to find them. - From
/jsin the zip copy onlyjquery-ui-XX.min.jstovendor/assets/javascripts
- From
- change ref to jquery-ui javascripts AND stylesheets in
app/assets/javascripts/application.js
Upgrading jQuery is done by hand and involves the following steps:
- Download latest min version of jQuery from http://jquery.com
- Save it to
public/javascripts - Remove old js:
git rm public/javascripts/jquery-XX.min.js - Change ref to jquery javascripts in
app/views/layouts/login.html.erbapp/views/layouts/standard.html.erb
Upgrading jQueryUI by hand involves the following steps:
- Download the ui zip from jqueryui.com using the custom download
- Check all modules
- Select Sunny as the theme
- Select the latest version
- Click download
- Remove old UI files
git rm -r public/stylesheets/imagesgit rm public/stylesheets/jquery-ui-XX.custom.jsgit rm public/javascripts/jquery-ui-XX.custom.min.js
- Add new UI files
- from
/css/sunnyin the zip copy all css and images topublic/stylesheets. Yes, the images need to be in this stylesheets directory for jQuery to find them. - from
/jsin the zip copy onlyjquery-ui-XX.min.jstopublic/javascripts
- from
- change ref to jquery-ui javascripts AND stylesheets in
app/views/layouts/standard.html.erb
Test Tracks (rake cucumber:selenium) and enjoy
Remember to clear the cache on production environments!