MDL-74544 lib: Set Moodle files after JQuery UI upgrade

This commit is contained in:
David Woloszyn
2023-08-09 12:28:25 +08:00
committed by Andrew Nicols
parent f86061e840
commit 15cd073a2f
4 changed files with 19 additions and 13 deletions
+2 -2
View File
@@ -37,6 +37,6 @@
$plugins = array(
'jquery' => array('files' => array('jquery-3.5.1.min.js')),
'ui' => array('files' => array('ui-1.12.1/jquery-ui.min.js')),
'ui-css' => array('files' => array('ui-1.12.1/theme/smoothness/jquery-ui.min.css')),
'ui' => array('files' => array('ui-1.13.2/jquery-ui.min.js')),
'ui-css' => array('files' => array('ui-1.13.2/theme/smoothness/jquery-ui.min.css')),
);
+15 -9
View File
@@ -1,21 +1,27 @@
Description of import of various jQuery libraries into Moodle:
1/ download jQuery JS from http://jquery.com/download/,
delete old files and edit plugins.php and lib/requirejs/moodle-config.js
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 files
delete old files
edit plugins.php and lib/requirejs/moodle-config.js
2/ download jQuery UI files from http://jqueryui.com/download/all/,
delete old files and edit plugins.php and lib/requirejs/moodle-config.js
2/ 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 library
delete old files
edit plugins.php and lib/requirejs/moodle-config.js
delete unnecessary files: external folder, index.html, AUTHORS.txt, package.json
3/ download all UI themes and update smoothness theme
3/ Download all UI themes,
create the theme folder into ui-A.B.C
copy the smoothness theme
4/ run phpunit tests
4/ Update the version of jquery in core_privacy\local\request\moodle_content_writer::write_html_data() and privacy/templates/htmlpage.mustache.
5/ open http://127.0.0.1/lib/tests/other/jquerypage.php
5/ Run phpunit tests
6/ Open http://127.0.0.1/lib/tests/other/jquerypage.php
6/ Update the version of jquery in core_privacy\local\request\moodle_content_writer::write_html_data()
Petr Skoda
Note: 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.trim
+1 -1
View File
@@ -7,7 +7,7 @@ var require = {
paths: {
jquery: '[JSURL]lib/jquery/jquery-3.5.1[JSMIN][JSEXT]',
jqueryui: '[JSURL]lib/jquery/ui-1.12.1/jquery-ui[JSMIN][JSEXT]',
jqueryui: '[JSURL]lib/jquery/ui-1.13.2/jquery-ui[JSMIN][JSEXT]',
jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
},
+1 -1
View File
@@ -151,7 +151,7 @@
<location>jquery</location>
<name>jQuery UI</name>
<license>MIT</license>
<version>1.12.1</version>
<version>1.13.2</version>
<licenseversion></licenseversion>
</library>
<library>