Skip to content

Commit

Permalink
Merge pull request RinteRface#213 from JohnCoene/preloader
Browse files Browse the repository at this point in the history
fix preloader: no longer breaks waiter
  • Loading branch information
DivadNojnarg authored Jun 8, 2021
2 parents 4975354 + b96f06a commit 93c7c45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/dashboardPage.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,12 @@ bs4DashPage <- function(header, sidebar, body, controlbar = NULL, footer = NULL,
paste0(
"window.ran = false;",
"$(document).on('shiny:idle', function(event){
if(!window.ran)
if(!window.ran){
$('.waiter-overlay').fadeOut(1000);
setTimeOut(function(){
$('.waiter-overlay').remove();
}, 1200);
}
window.ran = true;
});"
)
Expand Down

0 comments on commit 93c7c45

Please sign in to comment.