Skip to content

Commit

Permalink
Merge branch 'MDL-50937-master' of git://github.com/damyon/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 19, 2016
2 parents 2c85472 + d863344 commit 11caf2e
Show file tree
Hide file tree
Showing 12 changed files with 2,713 additions and 4,392 deletions.
5 changes: 0 additions & 5 deletions lib/jquery/jquery-1.12.1.min.js

This file was deleted.

6,356 changes: 2,702 additions & 3,654 deletions lib/jquery/jquery-1.12.1.js → lib/jquery/jquery-3.1.0.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/jquery/jquery-3.1.0.min.js

Large diffs are not rendered by default.

717 changes: 0 additions & 717 deletions lib/jquery/jquery-migrate-1.4.0.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/jquery/jquery-migrate-1.4.0.min.js

This file was deleted.

3 changes: 1 addition & 2 deletions lib/jquery/plugins.php
Expand Up @@ -37,8 +37,7 @@
*/

$plugins = array(
'jquery' => array('files' => array('jquery-1.12.1.min.js')),
'migrate' => array('files' => array('jquery-migrate-1.4.0.min.js')),
'jquery' => array('files' => array('jquery-3.1.0.min.js')),
'ui' => array('files' => array('ui-1.11.4/jquery-ui.min.js')),
'ui-css' => array('files' => array('ui-1.11.4/theme/smoothness/jquery-ui.min.css')),
);
2 changes: 1 addition & 1 deletion lib/jquery/readme_moodle.txt
@@ -1,6 +1,6 @@
Description of import of various jQuery libraries into Moodle:

1/ download jQuery JS and Migrate files from http://jquery.com/download/,
1/ download jQuery JS from http://jquery.com/download/,
delete old files and edit plugins.php and lib/requirejs/moodle-config.js

2/ download jQuery UI files from http://jqueryui.com/download/all/,
Expand Down
2 changes: 1 addition & 1 deletion lib/requirejs/moodle-config.js
Expand Up @@ -5,7 +5,7 @@ var require = {
skipDataMain: true,

paths: {
jquery: '[JSURL]lib/jquery/jquery-1.12.1.min[JSEXT]',
jquery: '[JSURL]lib/jquery/jquery-3.1.0.min[JSEXT]',
jqueryui: '[JSURL]lib/jquery/ui-1.11.4/jquery-ui.min[JSEXT]',
jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
},
Expand Down
2 changes: 1 addition & 1 deletion lib/tests/jquery_test.php
Expand Up @@ -46,7 +46,7 @@ public function test_plugins_file() {
$plugins = null;
require($CFG->libdir . '/jquery/plugins.php');
$this->assertInternalType('array', $plugins);
$this->assertEquals(array('jquery', 'migrate', 'ui', 'ui-css'), array_keys($plugins));
$this->assertEquals(array('jquery', 'ui', 'ui-css'), array_keys($plugins));

foreach ($plugins as $type => $files) {
foreach ($files['files'] as $file) {
Expand Down
1 change: 0 additions & 1 deletion lib/tests/other/jquerypage.php
Expand Up @@ -36,7 +36,6 @@
$PAGE->requires->jquery();
$PAGE->requires->jquery_plugin('ui');
$PAGE->requires->jquery_plugin('ui-css');
$PAGE->requires->jquery_plugin('migrate');

echo $OUTPUT->header();

Expand Down
9 changes: 1 addition & 8 deletions lib/thirdpartylibs.xml
Expand Up @@ -172,14 +172,7 @@
<location>jquery</location>
<name>jQuery</name>
<license>MIT</license>
<version>1.12.1</version>
<licenseversion></licenseversion>
</library>
<library>
<location>jquery</location>
<name>jQuery Migrate</name>
<license>MIT</license>
<version>1.4.0</version>
<version>3.1.0</version>
<licenseversion></licenseversion>
</library>
<library>
Expand Down
2 changes: 2 additions & 0 deletions lib/upgrade.txt
Expand Up @@ -4,6 +4,8 @@ information provided here is intended especially for developers.
=== 3.2 ===

* Node.js versions >=4 are now required to run grunt.
* JQuery has been updated to 3.1.0. JQuery migrate plugins are no longer shipped - please read
https://jquery.com/upgrade-guide/3.0/ and update your javascript.
* New option 'blanktarget' added to format_text. This option adds target="_blank" to links
* A new webservice structure `external_files` has been created which provides a standardised view of files in Moodle and
should be used for all file return descriptions.
Expand Down

0 comments on commit 11caf2e

Please sign in to comment.