You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
714B

  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. $(document).ready(function()
  7. {
  8. boulange_signup() ;
  9. });
  10. function boulange_signup()
  11. {
  12. if($('#form-signup').size())
  13. {
  14. boulange_signup_champs_boulanger() ;
  15. $('#signupform-is_boulanger').change(function() {
  16. boulange_signup_champs_boulanger() ;
  17. }) ;
  18. }
  19. }
  20. function boulange_signup_champs_boulanger()
  21. {
  22. if($('#signupform-is_boulanger').prop('checked'))
  23. {
  24. $('#champs-boulanger').fadeIn() ;
  25. }
  26. else {
  27. $('#champs-boulanger').hide() ;
  28. }
  29. }