Skip to content
Snippets Groups Projects
Commit 2d169364 authored by Angie Byron's avatar Angie Byron
Browse files

#557284 by rfay, timos: Fixed AHAH/AJAX bindings do not work on checkbox or radio in IE6/7/8

parent 3ee6f6bb
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -247,7 +247,15 @@ Drupal.ajax.prototype.eventResponse = function (element, event) {
alert("An error occurred while attempting to process " + ajax.options.url + ": " + e.message);
}
return false;
// For radio/checkbox, allow the default event. On IE, this means letting
// it actually check the box.
if (typeof element.type != 'undefined' && (element.type == 'checkbox' || element.type == 'radio')) {
return true;
}
else {
return false;
}
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment