aboutsummaryrefslogtreecommitdiff
path: root/js/tests/visual/modal.html
diff options
context:
space:
mode:
authorJulien Déramond <[email protected]>2022-09-27 21:53:59 +0200
committerGitHub <[email protected]>2022-09-27 22:53:59 +0300
commitabb1cf529fb8dfb8e66e44506eb32f8a9e0e0ee2 (patch)
tree7fa480ede0394209bfe603a1417799c6f82f61b0 /js/tests/visual/modal.html
parentf84d82ada02084cc6567b7ff60f25650084b8bea (diff)
downloadbootstrap-abb1cf529fb8dfb8e66e44506eb32f8a9e0e0ee2.tar.xz
bootstrap-abb1cf529fb8dfb8e66e44506eb32f8a9e0e0ee2.zip
Add eslint-plugin-html to lint JS in HTML files (#37186)
Diffstat (limited to 'js/tests/visual/modal.html')
-rw-r--r--js/tests/visual/modal.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index 5056c6e7c..fd93c068a 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -201,6 +201,8 @@
<script src="../../../dist/js/bootstrap.bundle.js"></script>
<script>
+ /* global bootstrap: false */
+
const ffBugTestResult = document.getElementById('ff-bug-test-result')
const firefoxTestDone = false
@@ -217,11 +219,7 @@
const tall = document.getElementById('tall')
document.getElementById('tall-toggle').addEventListener('click', () => {
- if (tall.style.display === 'none') {
- tall.style.display = 'block'
- } else {
- tall.style.display = 'none'
- }
+ tall.style.display = tall.style.display === 'none' ? 'block' : 'none'
})
const ffBugInput = document.getElementById('ff-bug-input')
@@ -231,6 +229,7 @@
ffBugInput.addEventListener('focus', reportFirefoxTestResult.bind(true))
ffBugInput.removeEventListener('focus', handlerClickFfBugInput)
}
+
ffBugInput.addEventListener('focus', handlerClickFfBugInput)
const modalFf = new bootstrap.Modal(firefoxModal)