MDL-79863 qtype_ordering: qtype_ordering fix JS error on Moodle >= 3.7 caused by incorrect syntax in 'define' statement in key_codes.js

This commit is contained in:
Gordon Bateson 2019-12-12 18:23:30 +09:00 committed by Mathew May
parent 43c7e39a74
commit 6c6942faca
4 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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}});
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}});

View file

@ -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,

View file

@ -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)';