Skip to content

Commit

Permalink
attempt to control display of errbox #36
Browse files Browse the repository at this point in the history
  • Loading branch information
ebey committed Jul 29, 2015
1 parent 9e33ca3 commit 09523c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 1 addition & 2 deletions inst/shiny/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,7 @@ fluidRow(
column(2, p(textOutput('ninfocentmax')))
)
),
conditionalPanel(condition = "output.errstate == '1'",
div(class = "error", uiOutput("errbox")))
div(class = "error", uiOutput("errbox"))

)

Expand Down
14 changes: 13 additions & 1 deletion inst/shiny/www/busy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,16 @@ setInterval(function(){


//setInterval will check if shiny is busy every 100ms
//if shiny is busy, setTimeout will display div.busy after 1 second (1000ms)
//if shiny is busy, setTimeout will display div.busy after 1 second (1000ms)

setInterval(function(){
if (output.errstate=='1') {
setTimeout(function() {
if (output.errstate=='1') {
$('div.error').show()
}
}, 1000)
} else {
$('div.error').hide()
}
}, 100)

0 comments on commit 09523c5

Please sign in to comment.