can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r9982: LJSUP-7838: Deny anonymous gifting of fr...

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();

Tags: can3p, js, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments