tap/app/assets/javascripts/remove_button.js
2015-10-26 18:57:59 +01:00

12 lines
252 B
JavaScript

ready = function() {
$('[data-remove]').each(function() {
var button = $(this);
setTimeout(function() {
$(button).remove();
}, $(button).data("remove") * 1000);
});
}
$(document).ready(ready);
$(document).on('page:load', ready);