Commit e3e0c974 authored by Simey Lameze's avatar Simey Lameze
Browse files

MDL-65560 qtype_multichoice: prevent form change dialog

parent 2018f4eb
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -75,11 +75,14 @@ define(['jquery', 'core/custom_interaction_events'], function($, CustomEvents) {
var registerEventListeners = function(root, fieldPrefix) {
var clearChoiceContainer = getClearChoiceElement(root, fieldPrefix);
root.on(, SELECTORS.CLEAR_CHOICE_ELEMENT, function() {
root.on(, SELECTORS.CLEAR_CHOICE_ELEMENT, function(e, data) {
// Mark the clear choice radio element as checked.
// Now that the hidden radio has been checked, hide the clear choice option.
root.on(, SELECTORS.CHOICE_ELEMENT, function() {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment