houdini/client/js/nonprofits/donate/plugins-available/alwaysAnonymous.js

11 lines
261 B
JavaScript
Raw Normal View History

jQuery(function($){
$(".donationWizard").on("render:post", function(){
var cb=document.getElementsByName("anonymous")[0];
cb || console.log("ERROR: the checkbox anonymous ain't no more");
cb.checked = true;
cb.parentNode.style.display="none";
});
});