Committer: dpetrov
LJSUP-7838: Deny anonymous gifting of free userheads (JS)U trunk/htdocs/js/pay.js
Modified: trunk/htdocs/js/pay.js =================================================================== --- trunk/htdocs/js/pay.js 2011-02-02 07:27:39 UTC (rev 9981) +++ trunk/htdocs/js/pay.js 2011-02-02 10:03:00 UTC (rev 9982) @@ -269,7 +269,11 @@ jQuery(this.form[this.name]).parents('li.b-userheads-item').removeClass('active'); jQuery(this).parents('li:first').addClass('active'); - anonCheckbox.attr( 'disabled', jQuery(this).hasClass('uh-free') ); + var isFree = jQuery(this).hasClass('uh-free'); + anonCheckbox.attr( 'disabled', isFree); + if( isFree ) { + anonCheckbox.attr( 'checked', false ); + } }) // recalc after refresh .filter(':checked').change();