1 |
efrain |
1 |
Description of import of various jQuery libraries into Moodle:
|
|
|
2 |
|
|
|
3 |
1/ Download compressed and uncompressed jQuery JS from http://jquery.com/download/,
|
|
|
4 |
copy the new version of the jquery-X.Y.Z.js and jquery-X.Y.Z.min.js files
|
|
|
5 |
delete old files
|
|
|
6 |
edit plugins.php and lib/requirejs/moodle-config.js
|
|
|
7 |
|
|
|
8 |
2/ Download jQuery UI files from http://jqueryui.com/download/all/,
|
|
|
9 |
copy the folder ui-A.B.C, with the new version of the JQuery UI library
|
|
|
10 |
delete old files
|
|
|
11 |
edit plugins.php and lib/requirejs/moodle-config.js
|
|
|
12 |
delete unnecessary files: external folder, index.html, AUTHORS.txt, package.json
|
|
|
13 |
|
|
|
14 |
3/ Download all UI themes,
|
|
|
15 |
create the theme folder into ui-A.B.C
|
|
|
16 |
copy the smoothness theme
|
|
|
17 |
|
|
|
18 |
4/ Update the version of jquery in core_privacy\local\request\moodle_content_writer::write_html_data() and privacy/templates/htmlpage.mustache.
|
|
|
19 |
|
|
|
20 |
5/ Run phpunit tests
|
|
|
21 |
|
|
|
22 |
6/ Open http://127.0.0.1/lib/tests/other/jquerypage.php
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
Note: jQuery.trim() function and :first pseudo-class are deprecated. We use String.prototype.trim() and .first()
|
|
|
27 |
in Moodle code instead. Please note that in third party libraries there are still usages of jQuery.trim
|
|
|
28 |
for example xhprof and jQuery UI.
|