demarches-normaliennes/app/assets/javascripts/admin.js
2016-02-09 12:24:05 +01:00

14 lines
No EOL
338 B
JavaScript

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