Ver código fonte

[frontend] Inscription : affichage du champs "Code" lorsque le producteur est protégé par un code

refactoring
Guillaume Bourgeois 5 anos atrás
pai
commit
8291bddc34
2 arquivos alterados com 15 adições e 1 exclusões
  1. +14
    -0
      frontend/web/js/frontend.js
  2. +1
    -1
      producer/web/js/producer.js

+ 14
- 0
frontend/web/js/frontend.js Ver arquivo

$('#option-user, #option-producer').change(function() { $('#option-user, #option-producer').change(function() {
opendistrib_signup_fields_producer() ; opendistrib_signup_fields_producer() ;
}) ; }) ;
opendistrib_signup_code_producer() ;
$('#signupform-id_producer').change(function() {
opendistrib_signup_code_producer() ;
}) ;
} }
} }


} }
} }


function opendistrib_signup_code_producer() {
if($('#signupform-id_producer option:selected').hasClass('lock')){
$('#bloc-code-acces').fadeIn() ;
}
else {
$('#bloc-code-acces').hide() ;
}
}




+ 1
- 1
producer/web/js/producer.js Ver arquivo

base_url += $('meta[name=slug-producer]').attr('content')+'/' ; base_url += $('meta[name=slug-producer]').attr('content')+'/' ;
} }
return base_url ; return base_url ;
}
}

Carregando…
Cancelar
Salvar