|
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
- $(document).ready(function()
- {
- boulange_signup() ;
- boulange_index_commandes() ;
- });
-
- function boulange_index_commandes()
- {
- $('#bloc-add-etablissement .panel-heading').click(function() {
- var panel_body = $(this).parent().find('.panel-body') ;
- if(panel_body.css('display') == 'none')
- panel_body.fadeIn() ;
- else
- panel_body.hide() ;
- }) ;
- }
-
- function boulange_signup()
- {
- if($('#form-signup').size())
- {
- boulange_signup_champs_boulanger() ;
- $('#signupform-is_boulanger').change(function() {
- boulange_signup_champs_boulanger() ;
- }) ;
- }
- }
-
- function boulange_signup_champs_boulanger()
- {
- if($('#signupform-is_boulanger').prop('checked'))
- {
- $('#champs-boulanger').fadeIn() ;
- }
- else {
- $('#champs-boulanger').hide() ;
- }
- }
-
|