mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-68378 core: url_select listens to accessibleChange event
This commit is contained in:
parent
a97c40cf83
commit
2a14ef789b
@ -75,8 +75,9 @@
|
||||
</div>
|
||||
{{^showbutton}}
|
||||
{{#js}}
|
||||
require(['jquery'], function($) {
|
||||
$('#{{id}}').change(function() {
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user