demarches-normaliennes/app/assets/javascripts/old_design/admin.js
2019-05-14 16:18:29 +02:00

20 lines
331 B
JavaScript

/* globals $ */
$(document).on('click', '.delete', function() {
$(this).hide();
$(this)
.closest('td')
.find('.confirm')
.show();
});
$(document).on('click', '.cancel', function() {
$(this)
.closest('td')
.find('.delete')
.show();
$(this)
.closest('td')
.find('.confirm')
.hide();
});