demarches-normaliennes/app/assets/javascripts/old_design/action_btn_rules.js

12 lines
281 B
JavaScript

$(document).on('turbolinks:load', init_action_btn_rules);
function init_action_btn_rules() {
$('.btn-send').click(function () {
$(this).addClass("disabled");
this.addEventListener("click", lock_btn);
});
function lock_btn(event) {
event.preventDefault();
}
}