File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ extend-select = [
59
59
" TCH" , # TCH; flake8-type-checking: https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch
60
60
# "FIX", # FIX; flake8-fixme: https://docs.astral.sh/ruff/rules/#flake8-fixme-fix
61
61
# "PGH", # PGH; pygrep-hooks: https://docs.astral.sh/ruff/rules/#pygrep-hooks-pgh
62
- " FLY" , # FLY; flynt: https://docs.astral.sh/ruff/rules/#flynt-fly
63
62
" NPY" , # NPY; NumPy-specific rules: https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy
64
63
" RUF005" , # RUF005; Ruff specific rules Consider {expression} instead of concatenation: https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
65
64
" RUF100" , # RUF100; Ruff specific rules Unused `noqa` directive https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
Original file line number Diff line number Diff line change @@ -131,7 +131,13 @@ def modal(
131
131
)
132
132
133
133
# jQuery plugin doesn't work in Bootstrap 5, but vanilla JS doesn't work in Bootstrap 4 :sob:
134
- js = "if (window.bootstrap && !window.bootstrap.Modal.VERSION.match(/^4\\ . /)) {\n var modal=new bootstrap.Modal(document.getElementById('shiny-modal'))\n modal.show()\n } else {\n $('#shiny-modal').modal().focus()\n }"
134
+ js = """\
135
+ if (window.bootstrap && !window.bootstrap.Modal.VERSION.match(/^4\\ . /)) {
136
+ var modal=new bootstrap.Modal(document.getElementById('shiny-modal'))
137
+ modal.show()
138
+ } else {
139
+ $('#shiny-modal').modal().focus()
140
+ }"""
135
141
136
142
backdrop = None if easy_close else "static"
137
143
keyboard = None if easy_close else "false"
You can’t perform that action at this time.
0 commit comments