|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
-
- $(document).ready(function()
- {
- opendistrib_signup() ;
- });
-
- function opendistrib_signup()
- {
- if($('#form-signup').size())
- {
- opendistrib_signup_fields_producer() ;
- $('#option-user, #option-producer').change(function() {
- opendistrib_signup_fields_producer() ;
- }) ;
-
- opendistrib_signup_code_producer() ;
- $('#signupform-id_producer').change(function() {
- opendistrib_signup_code_producer() ;
- }) ;
- }
- }
-
- function opendistrib_signup_fields_producer()
- {
- if($('#option-producer').prop('checked'))
- {
- $('#fields-producer').fadeIn() ;
- $('#fields-user').hide() ;
- }
- else {
- $('#fields-producer').hide() ;
- $('#fields-user').fadeIn() ;
- }
- }
-
- function opendistrib_signup_code_producer() {
- if($('#signupform-id_producer option:selected').hasClass('lock')){
- $('#bloc-code-acces').fadeIn() ;
- }
- else {
- $('#bloc-code-acces').hide() ;
- }
- }
-
-
|