demarches-normaliennes/app/assets/javascripts/archive.js

14 lines
308 B
JavaScript
Raw Normal View History

2017-03-30 17:00:35 +02:00
$(document).on('turbolinks:load', buttons_archived);
2015-11-26 18:41:41 +01:00
function buttons_archived(){
2017-04-04 16:15:33 +02:00
$("button#archive").on('click', function(){
$("button#archive").hide();
$("#confirm").show();
});
2015-11-26 18:41:41 +01:00
2017-04-04 16:15:33 +02:00
$("#confirm #cancel").on('click', function(){
$("button#archive").show();
$("#confirm").hide();
});
2017-03-30 17:00:35 +02:00
}