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.

47 line
1.0KB

  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. boulange_index_commandes() ;
  10. });
  11. function boulange_index_commandes()
  12. {
  13. $('#bloc-add-etablissement .panel-heading').click(function() {
  14. var panel_body = $(this).parent().find('.panel-body') ;
  15. if(panel_body.css('display') == 'none')
  16. panel_body.fadeIn() ;
  17. else
  18. panel_body.hide() ;
  19. }) ;
  20. }
  21. function boulange_signup()
  22. {
  23. if($('#form-signup').size())
  24. {
  25. boulange_signup_champs_boulanger() ;
  26. $('#signupform-is_boulanger').change(function() {
  27. boulange_signup_champs_boulanger() ;
  28. }) ;
  29. }
  30. }
  31. function boulange_signup_champs_boulanger()
  32. {
  33. if($('#signupform-is_boulanger').prop('checked'))
  34. {
  35. $('#champs-boulanger').fadeIn() ;
  36. }
  37. else {
  38. $('#champs-boulanger').hide() ;
  39. }
  40. }