diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-04 01:49:21 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-04 01:49:21 +0000 |
commit | 2d1693648d21b0c3d4509f396e1a6316a4445d0c (patch) | |
tree | 1ec068b4e3dfa389de6d2123e1d090e4f64e68c8 | |
parent | 3ee6f6bbc578ecd2f9d0b581bfa9b6e1abac40dd (diff) | |
download | brdo-2d1693648d21b0c3d4509f396e1a6316a4445d0c.tar.gz brdo-2d1693648d21b0c3d4509f396e1a6316a4445d0c.tar.bz2 |
#557284 by rfay, timos: Fixed AHAH/AJAX bindings do not work on checkbox or radio in IE6/7/8
-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; + } + }; /** |