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

21 lines
331 B
JavaScript
Raw Normal View History

2018-10-02 16:59:30 +02:00
/* 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();
});