-
-
Notifications
You must be signed in to change notification settings - Fork 537
Upgrading jquery
bsag edited this page Jul 16, 2011
·
5 revisions
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.erb
app/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/images
git rm public/stylesheets/jquery-ui-XX.custom.js
git rm public/javascripts/jquery-ui-XX.custom.min.js
- add new ui files
- from
/css/sunny
in 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
/js
in the zip copy onlyjquery-ui-XX.min.js
topublic/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!