From 2d1693648d21b0c3d4509f396e1a6316a4445d0c Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Sat, 4 Dec 2010 01:49:21 +0000
Subject: [PATCH] #557284 by rfay, timos: Fixed AHAH/AJAX bindings do not work
 on checkbox or radio in IE6/7/8

---
 misc/ajax.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/misc/ajax.js b/misc/ajax.js
index 088d46df7232..96be838b55e8 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;
+  }
+
 };
 
 /**
-- 
GitLab