Description:
Hide «All comments» and «Replies to my comment» radio-buttons if «Notify me when new comments are posted» is unchecked.

1. Create scripts.js file in your theme folder

2. Copy to file:

if (Drupal.jsEnabled) {
  $(document).ready(function() {
	   $("#edit-notify-type-1-wrapper").css("display", "none");
	    $("#edit-notify-type-2-wrapper").css("display", "none");
	    $("#edit-notify").click(function() {
	    	//$("#edit-notify").attr('checked', false);
	        if (this.checked) {
	            $("#edit-notify-type-1-wrapper").show();
	            $("#edit-notify-type-2-wrapper").show();
	        }
	        else {
	            $("#edit-notify-type-1-wrapper").hide();
	            $("#edit-notify-type-2-wrapper").hide();
	        }

	    });
  });
}

3. Paste in your theme.info string:
scripts[] = "scripts.js"

4. Flush cache

P.S. it desn't work with Ajax comments

Comments

greggles’s picture

Status: Active » Closed (works as designed)

The 6.x version doesn't work that way on purpose based on a UX review by Jeff Noyes.