diff --git a/question/type/ordering/CHANGES.txt b/question/type/ordering/CHANGES.txt index 300fb784ac7..8ee37f91cf0 100644 --- a/question/type/ordering/CHANGES.txt +++ b/question/type/ordering/CHANGES.txt @@ -2,6 +2,9 @@ Change log for qtype_ordering ======================================== +2019-12-12 (98) + - fix JS error on Moodle >= 3.7 caused by incorrect syntax in 'define' statement in key_codes.js + 2019-10-24 (96) - standardize layout and spelling in CHANGES.txt diff --git a/question/type/ordering/amd/build/key_codes.min.js b/question/type/ordering/amd/build/key_codes.min.js index 04bace5c914..88f103ec657 100644 --- a/question/type/ordering/amd/build/key_codes.min.js +++ b/question/type/ordering/amd/build/key_codes.min.js @@ -1 +1 @@ -define(function(){return{tab:9,enter:13,escape:27,space:32,end:35,home:36,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,8:56,asterix:106,pageUp:33,pageDown:34}}); \ No newline at end of file +define([],function(){return{tab:9,enter:13,escape:27,space:32,end:35,home:36,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,8:56,asterix:106,pageUp:33,pageDown:34}}); \ No newline at end of file diff --git a/question/type/ordering/amd/src/key_codes.js b/question/type/ordering/amd/src/key_codes.js index cd601bc1f05..2d45fb7043e 100644 --- a/question/type/ordering/amd/src/key_codes.js +++ b/question/type/ordering/amd/src/key_codes.js @@ -26,7 +26,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since 3.2 */ -define(function() { +define([], function() { return /** @alias module:qtype_ordering/key_codes */ { 'tab': 9, diff --git a/question/type/ordering/version.php b/question/type/ordering/version.php index 8de5ec8cab5..f6a97c32bdc 100644 --- a/question/type/ordering/version.php +++ b/question/type/ordering/version.php @@ -29,5 +29,5 @@ $plugin->cron = 0; $plugin->component = 'qtype_ordering'; $plugin->maturity = MATURITY_STABLE; $plugin->requires = 2015051100; // Moodle 2.9. -$plugin->version = 2019111097; -$plugin->release = '2019-11-10 (97)'; +$plugin->version = 2019121298; +$plugin->release = '2019-12-12 (98)';