demarches-normaliennes/app/javascript/new_design/state-button.js
2018-10-04 11:12:43 +02:00

12 lines
265 B
JavaScript

import $ from 'jquery';
export function showMotivation(event, state) {
event.preventDefault();
$(`.motivation.${state}`).show();
$('.dropdown-items').hide();
}
export function motivationCancel() {
$('.motivation').hide();
$('.dropdown-items').show();
}