| | 1 | = jQuery Upgrades = |
| | 2 | |
| | 3 | Read through release notes & identify which version you want to upgrade to for: |
| | 4 | * jQuery |
| | 5 | * jQuery Migrate |
| | 6 | * jQuery UI |
| | 7 | |
| | 8 | == Upgrade Files == |
| | 9 | jQuery & jQuery Migrate are both simply stored in {{{static/scripts}}} |
| | 10 | |
| | 11 | jQuery UI is spread across: |
| | 12 | * {{{static/scripts/ui}}} |
| | 13 | * {{{static/styles/ui}}} |
| | 14 | * {{{static/img/jquery-ui}}} |
| | 15 | * {{{static/themes/foundation/jquery-ui.theme.css}}} |
| | 16 | |
| | 17 | Clear the old versions (although leave additional plugins, such as fgtimepicker, multiselect, timepicker-addon |
| | 18 | |
| | 19 | Update the file locations in {{{views/jquery.html}}} & {{{views/scripts_top.html}}} |
| | 20 | |
| | 21 | If-necessary, update locations in {{{static/scripts/tools/sahana.js.cfg}}} &/or {{{modules/templates/default/css.cfg}}} |
| | 22 | |
| | 23 | == Tests == |
| | 24 | In debug mode carry out these actions, looking at the console including jQuery Migrate output: |
| | 25 | * Registration form (Password Strength) (any template, |
| | 26 | /eden/default/user/register) |
| | 27 | * modals (any template, /eden/org/office/create. Add Organisation inline) |
| | 28 | * Location Selector( any template, /eden/org/office/create) |
| | 29 | * dataTables (any template, /eden/org/organisation. Create record & |
| | 30 | return to List) |
| | 31 | * Pivot Tables (any template /eden/org/organisation/report) |
| | 32 | * Autocomplete (any template, /eden/hrm/staff/create. Add Person in widget |
| | 33 | * Date Picker (any template, /eden/hrm/staff/create) |
| | 34 | * Calendars (IFRC template, login as af_dm@example.com, /eden/cms/post/create) |
| | 35 | * Image Crop (any template, /eden/hrm/staff select created staff & click on empty profile pic) |
| | 36 | * jsTree (IFRC template, /eden/org/organisation branches) |
| | 37 | * Organizer (IFRC template, login as aprdrtadmin@example.com & manage |
| | 38 | a Member's Profile) |
| | 39 | * Profile Page Tabs |
| | 40 | * Roles Manager (any template w Policy3+ (e.g. IFRC), /eden/admin/role/4/update) |
| | 41 | * UCCE editor (UCCE template, edit Survey, add 1 of each Question |
| | 42 | Type, Move them around) |
| | 43 | * UCCE reports (UCCE template, add records in dynamic table, set a |
| | 44 | filter, view report, filter it) |