Load correct JS for the active Bootstrap version (#18120)

* Load correct JS for the active Bootstrap version

* Tidy up bootstrapVersion declaration

* Add Bootstrap JS to website redesign layout

* FIx error on interstitial subscriptions page

* Remove unnecessary import of jQuery and Bootstrap

* Use global entrypointScripts in bootstrap-js mixin

GitOrigin-RevId: 6b1977354a72dc69008fc0d2e3baec2f28d97f6b
This commit is contained in:
Tim Down
2024-05-03 08:04:07 +00:00
committed by Copybot
parent fb05c0bb82
commit 56150d9dbc
10 changed files with 25 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
import 'jquery'
import 'bootstrap'
$('[data-ol-lang-selector-tooltip]').tooltip({ trigger: 'hover' })
$('[data-toggle="tooltip"]').tooltip()
+1
View File
@@ -0,0 +1 @@
import 'bootstrap-5'
-5
View File
@@ -1,7 +1,5 @@
import './utils/webpack-public-path'
import './infrastructure/error-reporter'
import 'jquery'
import 'bootstrap'
import './features/form-helpers/hydrate-form'
import './features/form-helpers/password-visibility'
import './features/link-helpers/slow-link'
@@ -13,6 +11,3 @@ import './features/multi-submit'
import './features/cookie-banner'
import './features/autoplay-video'
import './features/mathjax'
$('[data-ol-lang-selector-tooltip]').tooltip({ trigger: 'hover' })
$('[data-toggle="tooltip"]').tooltip()
@@ -1,5 +1,3 @@
import 'jquery'
import 'bootstrap'
import './../utils/meta'
import './../utils/webpack-public-path'
import './../infrastructure/error-reporter'