demarches-normaliennes/app/assets/javascripts/old_design/procedure.js
Pierre de La Morinerie b5f1d97629 app: disable Turbolinks
Fix #5039
2020-05-13 11:04:16 +02:00

26 lines
666 B
JavaScript

/* globals $ */
$(document).on('DOMContentLoaded', button_edit_procedure_init);
function button_edit_procedure_init() {
buttons_api_carto();
button_individual();
}
function buttons_api_carto() {
$('#procedure-module-api-carto-use-api-carto').on('change', function () {
$('#modules-api-carto').toggle();
});
if ($('#procedure-module-api-carto-use-api-carto').is(':checked'))
$('#modules-api-carto').show();
}
function button_individual() {
$('#procedure_for_individual').on('change', function () {
$('#individual-with-siret').toggle();
});
if ($('#procedure_for_individual').is(':checked'))
$('#individual-with-siret').show();
}