demarches-normaliennes/app/assets/javascripts/archive.js
2017-04-04 16:59:40 +02:00

13 lines
308 B
JavaScript

$(document).on('turbolinks:load', buttons_archived);
function buttons_archived(){
$("button#archive").on('click', function(){
$("button#archive").hide();
$("#confirm").show();
});
$("#confirm #cancel").on('click', function(){
$("button#archive").show();
$("#confirm").hide();
});
}