|
|
@@ -46,6 +46,11 @@ function opendistrib_signup() |
|
|
|
$('#option-user, #option-producer').change(function() { |
|
|
|
opendistrib_signup_fields_producer() ; |
|
|
|
}) ; |
|
|
|
|
|
|
|
opendistrib_signup_code_producer() ; |
|
|
|
$('#signupform-id_producer').change(function() { |
|
|
|
opendistrib_signup_code_producer() ; |
|
|
|
}) ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -62,4 +67,13 @@ function opendistrib_signup_fields_producer() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function opendistrib_signup_code_producer() { |
|
|
|
if($('#signupform-id_producer option:selected').hasClass('lock')){ |
|
|
|
$('#bloc-code-acces').fadeIn() ; |
|
|
|
} |
|
|
|
else { |
|
|
|
$('#bloc-code-acces').hide() ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|