|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
-
- $(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() ;
- }) ;
- }
- }
-
- function opendistrib_signup_fields_producer()
- {
- if($('#option-producer').prop('checked'))
- {
- $('#fields-producer').fadeIn() ;
- $('#fields-user').hide() ;
- }
- else {
- $('#fields-producer').hide() ;
- $('#fields-user').fadeIn() ;
- }
- }
-
-
|