MDL-65751 lib: Update jQuery version in Moodle files
authorMihail Geshoski <mihail@moodle.com>
Thu, 13 Jun 2019 07:41:33 +0000 (15:41 +0800)
committerMihail Geshoski <mihail@moodle.com>
Mon, 15 Jul 2019 00:45:34 +0000 (08:45 +0800)
lib/jquery/plugins.php
lib/requirejs/moodle-config.js
lib/thirdpartylibs.xml
privacy/classes/local/request/moodle_content_writer.php
privacy/templates/htmlpage.mustache

index 051e4de..03ec62a 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 $plugins = array(
-    'jquery'  => array('files' => array('jquery-3.2.1.min.js')),
+    'jquery'  => array('files' => array('jquery-3.4.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')),
 );
index 3260250..25fa379 100644 (file)
@@ -6,7 +6,7 @@ var require = {
     waitSeconds : 0,
 
     paths: {
-        jquery: '[JSURL]lib/jquery/jquery-3.2.1[JSMIN][JSEXT]',
+        jquery: '[JSURL]lib/jquery/jquery-3.4.1[JSMIN][JSEXT]',
         jqueryui: '[JSURL]lib/jquery/ui-1.12.1/jquery-ui[JSMIN][JSEXT]',
         jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
     },
index 8623c2e..199dc3d 100644 (file)
     <location>jquery</location>
     <name>jQuery</name>
     <license>MIT</license>
-    <version>3.2.1</version>
+    <version>3.4.1</version>
     <licenseversion></licenseversion>
   </library>
   <library>
index ab0588d..2258fd5 100644 (file)
@@ -623,8 +623,8 @@ class moodle_content_writer implements content_writer {
         $targetpath = ['js', 'general.js'];
         $this->copy_data($jspath, $targetpath);
 
-        $jquery = ['lib', 'jquery', 'jquery-3.2.1.min.js'];
-        $jquerydestination = ['js', 'jquery-3.2.1.min.js'];
+        $jquery = ['lib', 'jquery', 'jquery-3.4.1.min.js'];
+        $jquerydestination = ['js', 'jquery-3.4.1.min.js'];
         $this->copy_data($jquery, $jquerydestination);
 
         $requirecurrentpath = ['lib', 'requirejs', 'require.min.js'];
index 3139ce7..cf27804 100644 (file)
@@ -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.2.1.min.js"></script>
+        <script src="js/jquery-3.4.1.min.js"></script>
         <script src="js/data_index.js"></script>
         <script src="js/general.js"></script>
         <script src="js/require.min.js"></script>
@@ -74,7 +74,7 @@
                 "baseUrl": "./",
                 "paths": {
                     "app": "./",
-                    "jquery": "./js/jquery-3.2.1.min",
+                    "jquery": "./js/jquery-3.4.1.min",
                     "tree": "./js/tree.min"
                 }
             });