Fix download buttons blocked by Framework7 link interception
This commit is contained in:
8
app.R
8
app.R
@@ -290,8 +290,12 @@ ui <- f7Page(
|
||||
HTML(
|
||||
"
|
||||
$(document).on('click', '#pdfLink', function(event) {
|
||||
event.preventDefault(); // Prevent the default link behavior
|
||||
window.open($(this).attr('href'), '_blank'); // Open in a new tab
|
||||
event.preventDefault();
|
||||
window.open($(this).attr('href'), '_blank');
|
||||
});
|
||||
$(document).on('click', '#download_filtered, #download_all', function(event) {
|
||||
event.preventDefault();
|
||||
window.open($(this).attr('href'), '_self');
|
||||
});
|
||||
"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user