view static/js/sat_website.js @ 94:c1b77f07f644

replace shipped file unicodecsv.py with the module of the same name
author souliane <souliane@mailoo.org>
date Tue, 23 Jun 2015 18:34:14 +0200
parents d54f2f09a73a
children
line wrap: on
line source

$(document).ready(function() {

    // language selector
    $('#language_select').change(function() {
        $('#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();
        }
    });

});