This commit is contained in:
Ilya Tregubov 2023-09-28 16:40:35 +08:00
commit 12b5c2e952
No known key found for this signature in database
GPG Key ID: 0F58186F748E55C1

View File

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