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

14 lines
338 B
JavaScript
Raw Normal View History

2016-02-09 12:23:49 +01:00
$(document).on('page:load', destroy_action);
$(document).ready(destroy_action);
function destroy_action(){
$("#destroy").on('click', function(){
$("#destroy").hide();
$("#confirm").show();
});
$("#confirm #cancel").on('click', function(){
$("#destroy").show();
$("#confirm").hide();
});
}