Greetings Tada Community-
Can anyone help out with JS that will reload a page after the delete button is clicked?
Tried this but couldn’t figure it out…
TB.render('component_15', function(data) {
data.ele.find('.af-form-delete').on('click',function(){
location.reload();
});
});
Thanks much,
Adam
can you give a bit more context? if you’re looking to force update, you can probably set your delete click to click a refresh button - but this may click whether you actually delete or not.
//Give the delete button column, force_update class
$(‘.force_update a’).on(‘click’, function() {
console.log(“force update clicked”);
setTimeout(function() {
//Change this code to your refresh button
$($(“#x_element_page_70_81 .update_btn a”)[0]).trigger(‘click’);
}, 1000);
});