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

18 lines
508 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(){
$(".delete").on('click', function(){
$(this).hide();
$(this).closest('td').find(".confirm").show();
2016-02-09 12:23:49 +01:00
});
$(".cancel").on('click', function(){
$(this).closest('td').find(".delete").show();
$(this).closest('td').find(".confirm").hide();
});
$("#liste_gestionnaire #libelle").on('click', function(){
setTimeout(destroy_action, 500);
2016-02-09 12:23:49 +01:00
});
}