MDL-78244 lib: Update jQuery to 3.7.1

This commit is contained in:
meirzamoodle 2023-09-05 14:30:30 +07:00
parent 206c3a66e7
commit 78e0fb0818
8 changed files with 826 additions and 1075 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

2
lib/jquery/jquery-3.7.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@
*/ */
$plugins = array( $plugins = array(
'jquery' => array('files' => array('jquery-3.6.4.min.js')), 'jquery' => array('files' => array('jquery-3.7.1.min.js')),
'ui' => array('files' => array('ui-1.13.2/jquery-ui.min.js')), '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')), 'ui-css' => array('files' => array('ui-1.13.2/theme/smoothness/jquery-ui.min.css')),
); );

View File

@ -6,7 +6,7 @@ var require = {
waitSeconds : 0, waitSeconds : 0,
paths: { paths: {
jquery: '[JSURL]lib/jquery/jquery-3.6.4[JSMIN][JSEXT]', jquery: '[JSURL]lib/jquery/jquery-3.7.1[JSMIN][JSEXT]',
jqueryui: '[JSURL]lib/jquery/ui-1.13.2/jquery-ui[JSMIN][JSEXT]', jqueryui: '[JSURL]lib/jquery/ui-1.13.2/jquery-ui[JSMIN][JSEXT]',
jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]' jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
}, },

View File

@ -212,7 +212,7 @@
<location>jquery</location> <location>jquery</location>
<name>jQuery</name> <name>jQuery</name>
<description>jQuery is a fast, small, and feature-rich JavaScript library widely used on moodle.</description> <description>jQuery is a fast, small, and feature-rich JavaScript library widely used on moodle.</description>
<version>3.6.4</version> <version>3.7.1</version>
<license>MIT</license> <license>MIT</license>
<repository>https://github.com/jquery/jquery</repository> <repository>https://github.com/jquery/jquery</repository>
<copyrights> <copyrights>

View File

@ -622,8 +622,8 @@ class moodle_content_writer implements content_writer {
$targetpath = ['js', 'general.js']; $targetpath = ['js', 'general.js'];
$this->copy_data($jspath, $targetpath); $this->copy_data($jspath, $targetpath);
$jquery = ['lib', 'jquery', 'jquery-3.6.4.min.js']; $jquery = ['lib', 'jquery', 'jquery-3.7.1.min.js'];
$jquerydestination = ['js', 'jquery-3.6.4.min.js']; $jquerydestination = ['js', 'jquery-3.7.1.min.js'];
$this->copy_data($jquery, $jquerydestination); $this->copy_data($jquery, $jquerydestination);
$requirecurrentpath = ['lib', 'requirejs', 'require.min.js']; $requirecurrentpath = ['lib', 'requirejs', 'require.min.js'];

View File

@ -65,7 +65,7 @@
<div data-main-content class="jumbotron bg-light border"> <div data-main-content class="jumbotron bg-light border">
<h2 class="display-8">{{#str}}viewdata, core_privacy{{/str}}</h2> <h2 class="display-8">{{#str}}viewdata, core_privacy{{/str}}</h2>
</div> </div>
<script src="js/jquery-3.6.4.min.js"></script> <script src="js/jquery-3.7.1.min.js"></script>
<script src="js/data_index.js"></script> <script src="js/data_index.js"></script>
<script src="js/general.js"></script> <script src="js/general.js"></script>
<script src="js/require.min.js"></script> <script src="js/require.min.js"></script>
@ -74,7 +74,7 @@
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {
"app": "./", "app": "./",
"jquery": "./js/jquery-3.6.4.min", "jquery": "./js/jquery-3.7.1.min",
"core/tree": "./js/tree.min" "core/tree": "./js/tree.min"
} }
}); });