summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-04 01:49:21 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-04 01:49:21 +0000
commit2d1693648d21b0c3d4509f396e1a6316a4445d0c (patch)
tree1ec068b4e3dfa389de6d2123e1d090e4f64e68c8 /misc
parent3ee6f6bbc578ecd2f9d0b581bfa9b6e1abac40dd (diff)
downloadbrdo-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
Diffstat (limited to 'misc')
-rw-r--r--misc/ajax.js10
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;
+ }
+
};
/**