AutorÃa | Ultima modificación | Ver Log |
Description of import of various jQuery libraries into Moodle:1/ Download compressed and uncompressed jQuery JS from http://jquery.com/download/,copy the new version of the jquery-X.Y.Z.js and jquery-X.Y.Z.min.js filesdelete old filesedit plugins.php and lib/requirejs/moodle-config.js2/ Download jQuery UI files from http://jqueryui.com/download/all/,copy the folder ui-A.B.C, with the new version of the JQuery UI librarydelete old filesedit plugins.php and lib/requirejs/moodle-config.jsdelete unnecessary files: external folder, index.html, AUTHORS.txt, package.json3/ Download all UI themes,create the theme folder into ui-A.B.Ccopy the smoothness theme4/ Update the version of jquery in core_privacy\local\request\moodle_content_writer::write_html_data() and privacy/templates/htmlpage.mustache.5/ Run phpunit tests6/ Open http://127.0.0.1/lib/tests/other/jquerypage.phpNote: jQuery.trim() function and :first pseudo-class are deprecated. We use String.prototype.trim() and .first()in Moodle code instead. Please note that in third party libraries there are still usages of jQuery.trimfor example xhprof and jQuery UI.