Merge branch 'MDL-78457' of https://github.com/paulholden/moodle
[moodle.git] / lib / jquery / readme_moodle.txt
blob17fd20b546e04d1a8bc59d6560ce6d23a50e4ad4
1 Description of import of various jQuery libraries into Moodle:
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
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
14 3/ Download all UI themes,
15    create the theme folder into ui-A.B.C
16    copy the smoothness theme
18 4/ Update the version of jquery in core_privacy\local\request\moodle_content_writer::write_html_data() and privacy/templates/htmlpage.mustache.
20 5/ Run phpunit tests
22 6/ Open http://127.0.0.1/lib/tests/other/jquerypage.php
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.