# This patch file was generated by NetBeans IDE # This patch is to apply on misc/ahah.js (D6) or misc/ajax.js (D7) tp fix the bug AHAH/AJAX bindings do not work on checkbox or radio in IE6/7/8 # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- /var/www/html/misc/ahah.js +++ /var/www/html/misc/ahah_1.js @@ -223,3 +223,26 @@ // Re-enable the element. $(this.element).removeClass('progess-disabled').attr('disabled', false); }; + +Drupal.behaviors.nexusForm = function (context) { + if (jQuery.browser.msie) { + trig_bind() + } + // Hide the botton we only want to see if the browser does not support js + $("#edit-continue").hide() + } + + //IE waits until another event to send the \'change\' events on radios and checkboxes + //This bind a trigger for those events on click. + function trig_bind() { + //unbind old events + $("input[type='checkbox']").unbind( 'click' ) + $("input[type='radio']").unbind( 'click' ) + //bind the events + $("input[type='checkbox']").bind( 'click', function() { + $(this).trigger( 'change' ) + }) + $("input[type='radio']").bind( 'click', function() { + $(this).trigger( 'change' ) + }) + } \ No newline at end of file