Skip to content

Commit

Permalink
fixed issue with hidden shiny-alert fields in shiny version 0.11.1+, …
Browse files Browse the repository at this point in the history
…which was introduced due to the switch to bootstrap 3.
  • Loading branch information
mlist committed Feb 12, 2015
1 parent 743347c commit d150cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/shiny-alert.R
Expand Up @@ -13,7 +13,7 @@
#' @export
shinyalert <- function(id, click.hide = TRUE, auto.close.after = NULL) {
tagList(singleton(tags$head(tags$script(src = "shinysky/shinyalert.js"))),
HTML(paste0("<div id=\"", id, "\" class=\"shinyalert alert hide fade\" data-alert=\"alert\" click-hide=\"",as.character(click.hide),"\" data-auto-close-after ='",auto.close.after,"'></div>")))
HTML(paste0("<div id=\"", id, "\" class=\"shinyalert alert fade\" data-alert=\"alert\" click-hide=\"",as.character(click.hide),"\" data-auto-close-after ='",auto.close.after,"'></div>")))
}

#' showshinyalert
Expand Down

0 comments on commit d150cc9

Please sign in to comment.