13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
$(document).on('turbolinks:load', buttons_archived);
|
|
|
|
function buttons_archived(){
|
|
$("button#archive").on('click', function(){
|
|
$("button#archive").hide();
|
|
$("#confirm").show();
|
|
});
|
|
|
|
$("#confirm #cancel").on('click', function(){
|
|
$("button#archive").show();
|
|
$("#confirm").hide();
|
|
});
|
|
}
|