mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-79463' of https://github.com/paulholden/moodle
This commit is contained in:
commit
12b5c2e952
@ -78,10 +78,9 @@
|
||||
require(['jquery', 'core/custom_interaction_events'], function($, CustomEvents) {
|
||||
CustomEvents.define('#{{id}}', [CustomEvents.events.accessibleChange]);
|
||||
$('#{{id}}').on(CustomEvents.events.accessibleChange, function() {
|
||||
if (!$(this).val()) {
|
||||
return false;
|
||||
if ($(this).val()) {
|
||||
$('#{{formid}}').submit();
|
||||
}
|
||||
$('#{{formid}}').submit();
|
||||
});
|
||||
});
|
||||
{{/js}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user