Version 3 (modified by 5 years ago) ( diff ) | ,
---|
jQuery Upgrades
Read through release notes & identify which version you want to upgrade to for:
- jQuery
- jQuery Migrate
- jQuery UI
Upgrade Files
jQuery & jQuery Migrate are both simply stored in static/scripts
jQuery UI is spread across:
static/scripts/ui
static/styles/ui
static/img/jquery-ui
static/themes/foundation/jquery-ui.theme.css
Use the Themeroller URL on the current theme file to download a new one, along with associated images
Clear the old versions (although leave additional plugins, such as fgtimepicker, multiselect, timepicker-addon
Update the file locations in views/jquery.html
& views/scripts_top.html
If-necessary, update locations in static/scripts/tools/sahana.js.cfg
&/or modules/templates/default/css.cfg
Tests
In debug mode carry out these actions, looking at the console including jQuery Migrate output:
- Registration form (Password Strength) (any template,
/eden/default/user/register)
- modals (any template, /eden/org/office/create. Add Organisation inline)
- Location Selector( any template, /eden/org/office/create)
- dataTables (any template, /eden/org/organisation. Create record &
return to List)
- Pivot Tables (any template /eden/org/organisation/report)
- Autocomplete (any template, /eden/hrm/staff/create. Add Person in widget
- Date Picker (any template, /eden/hrm/staff/create)
- Calendars (IFRC template, login as af_dm@example.com, /eden/cms/post/create)
- Image Crop (any template, /eden/hrm/staff select created staff & click on empty profile pic)
- jsTree (IFRC template, /eden/org/organisation/1/hierarchy)
- Organizer (IFRC template, login as aprdrtadmin@example.com & manage
a Member's Profile)
- Profile Page Tabs
- Roles Manager (any template w Policy3+ (e.g. IFRC), /eden/admin/role/4/update)
- UCCE editor (UCCE template, edit Survey, add 1 of each Question
Type, Move them around)
- UCCE reports (UCCE template, add records in dynamic table, set a
filter, view report, filter it)