Mercurial > sat_legacy_website
diff static/js/sat_website.js @ 34:9d553570cc61
add adhesion_form.html and thank_you.html
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 27 Jan 2015 08:20:30 +0100 |
parents | b45621706d83 |
children | d54f2f09a73a |
line wrap: on
line diff
--- a/static/js/sat_website.js Tue Jan 27 08:07:15 2015 +0100 +++ b/static/js/sat_website.js Tue Jan 27 08:20:30 2015 +0100 @@ -5,6 +5,15 @@ $('#language_form').submit(); }); + // registration form + $('#id_subscription_amount').change(function() { + if ($(this).val() > 0) { + $('#id_payment_method_group').show(); + } else { + $('#id_payment_method_group').hide(); + } + }); + // open the big gallery when a thumbnail is clicked $('#carousel-screenshots .thumbnail').click(function() { $('#modal-screenshots').modal('show');