|
- /*
- * 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_scroll(id) {
- if($("#"+id).size())
- $('html,body').animate({
- scrollTop: $("#"+id).offset().top},
- 1000);
- }
-
- 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() ;
- $('#option-client, #option-boulanger').change(function() {
- boulange_signup_champs_boulanger() ;
- }) ;
- }
- }
-
- function boulange_signup_champs_boulanger()
- {
- if($('#option-boulanger').prop('checked'))
- {
- $('#champs-boulanger').fadeIn() ;
- $('#champs-client').hide() ;
- }
- else {
- $('#champs-boulanger').hide() ;
- $('#champs-client').fadeIn() ;
- }
- }
-
|