Created Upgrading jquery (textile)

bsag 2011-07-16 06:01:58 -07:00
parent 8f4cb0c85e
commit 5279f1a083

31
Upgrading-jquery.textile Normal file

@ -0,0 +1,31 @@
h1. Upgrading jQuery
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) to @public/stylesheets@. Yes the images need to be in this stylesheets directory for jQuery to find them
** from @/js@ in the zip copy only @jquery-ui-XX.min.js@ to @public/javascripts@
* 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!