diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ajax.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/misc/ajax.js b/misc/ajax.js index 088d46df7..96be838b5 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -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; + } + }; /** |