Skip to content

Commit

Permalink
MDL-69680 lib: Update jQuery version in Moodle files
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov authored and abgreeve committed Mar 4, 2021
1 parent a5712a5 commit f2e6985
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/jquery/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

$plugins = array(
'jquery' => array('files' => array('jquery-3.4.1.min.js')),
'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')),
);
2 changes: 1 addition & 1 deletion lib/requirejs/moodle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var require = {
waitSeconds : 0,

paths: {
jquery: '[JSURL]lib/jquery/jquery-3.4.1[JSMIN][JSEXT]',
jquery: '[JSURL]lib/jquery/jquery-3.5.1[JSMIN][JSEXT]',
jqueryui: '[JSURL]lib/jquery/ui-1.12.1/jquery-ui[JSMIN][JSEXT]',
jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
},
Expand Down
2 changes: 1 addition & 1 deletion lib/thirdpartylibs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<location>jquery</location>
<name>jQuery</name>
<license>MIT</license>
<version>3.4.1</version>
<version>3.5.1</version>
<licenseversion></licenseversion>
</library>
<library>
Expand Down
4 changes: 2 additions & 2 deletions privacy/classes/local/request/moodle_content_writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ protected function write_html_data() {
$targetpath = ['js', 'general.js'];
$this->copy_data($jspath, $targetpath);

$jquery = ['lib', 'jquery', 'jquery-3.4.1.min.js'];
$jquerydestination = ['js', 'jquery-3.4.1.min.js'];
$jquery = ['lib', 'jquery', 'jquery-3.5.1.min.js'];
$jquerydestination = ['js', 'jquery-3.5.1.min.js'];
$this->copy_data($jquery, $jquerydestination);

$requirecurrentpath = ['lib', 'requirejs', 'require.min.js'];
Expand Down
4 changes: 2 additions & 2 deletions privacy/templates/htmlpage.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<div data-main-content class="jumbotron bg-light border">
<h2 class="display-8">{{#str}}viewdata, core_privacy{{/str}}</h2>
</div>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/data_index.js"></script>
<script src="js/general.js"></script>
<script src="js/require.min.js"></script>
Expand All @@ -74,7 +74,7 @@
"baseUrl": "./",
"paths": {
"app": "./",
"jquery": "./js/jquery-3.4.1.min",
"jquery": "./js/jquery-3.5.1.min",
"core/tree": "./js/tree.min"
}
});
Expand Down

0 comments on commit f2e6985

Please sign in to comment.