demarches-normaliennes/app/assets/javascripts/action_btn_rules.js
2017-04-03 15:43:41 +02:00

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();
}
}