Fix download buttons blocked by Framework7 link interception
All checks were successful
Deploy stAndrews / deploy (push) Successful in 6s

This commit is contained in:
2026-03-09 15:04:29 -04:00
parent 992ff2c99d
commit ef388636b3

8
app.R
View File

@@ -290,8 +290,12 @@ ui <- f7Page(
HTML( HTML(
" "
$(document).on('click', '#pdfLink', function(event) { $(document).on('click', '#pdfLink', function(event) {
event.preventDefault(); // Prevent the default link behavior event.preventDefault();
window.open($(this).attr('href'), '_blank'); // Open in a new tab window.open($(this).attr('href'), '_blank');
});
$(document).on('click', '#download_filtered, #download_all', function(event) {
event.preventDefault();
window.open($(this).attr('href'), '_self');
}); });
" "
) )