diff --git a/build/build-modules-js/build-bootstrap-js.es6.js b/build/build-modules-js/build-bootstrap-js.es6.js index 25b316747eaab..4d074f80a79cf 100644 --- a/build/build-modules-js/build-bootstrap-js.es6.js +++ b/build/build-modules-js/build-bootstrap-js.es6.js @@ -59,7 +59,6 @@ const build = async () => { 'node_modules/bootstrap/js/src/dom/manipulator.js', 'node_modules/bootstrap/js/src/dom/selector-engine.js', 'node_modules/bootstrap/js/src/util/index.js', - 'build/media_source/vendor/bootstrap/js/nojquerymode.es6.js', ], }, }); diff --git a/build/media_source/vendor/bootstrap/js/alert.es6.js b/build/media_source/vendor/bootstrap/js/alert.es6.js index b7ef49fd1f241..c5c5f08d597f7 100644 --- a/build/media_source/vendor/bootstrap/js/alert.es6.js +++ b/build/media_source/vendor/bootstrap/js/alert.es6.js @@ -1,10 +1,9 @@ -import nojQueryMode from './nojquerymode.es6'; import Alert from '../../../../../node_modules/bootstrap/js/src/alert'; window.bootstrap = window.bootstrap || {}; window.bootstrap.Alert = Alert; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const alerts = Joomla.getOptions('bootstrap.alert'); // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/button.es6.js b/build/media_source/vendor/bootstrap/js/button.es6.js index 1198ae48a5444..fddfe18aaf28f 100644 --- a/build/media_source/vendor/bootstrap/js/button.es6.js +++ b/build/media_source/vendor/bootstrap/js/button.es6.js @@ -1,10 +1,9 @@ -import nojQueryMode from './nojquerymode.es6'; import Button from '../../../../../node_modules/bootstrap/js/src/button'; window.bootstrap = window.bootstrap || {}; window.bootstrap.Button = Button; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const buttons = Joomla.getOptions('bootstrap.button'); // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/carousel.es6.js b/build/media_source/vendor/bootstrap/js/carousel.es6.js index 79727bccc7a5d..db681b2bbeca1 100644 --- a/build/media_source/vendor/bootstrap/js/carousel.es6.js +++ b/build/media_source/vendor/bootstrap/js/carousel.es6.js @@ -1,10 +1,9 @@ -import nojQueryMode from './nojquerymode.es6'; import Carousel from '../../../../../node_modules/bootstrap/js/src/carousel'; window.bootstrap = window.bootstrap || {}; window.bootstrap.Carousel = Carousel; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const carousels = Joomla.getOptions('bootstrap.carousel'); // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/collapse.es6.js b/build/media_source/vendor/bootstrap/js/collapse.es6.js index e3443a089b23b..297ecc2526256 100644 --- a/build/media_source/vendor/bootstrap/js/collapse.es6.js +++ b/build/media_source/vendor/bootstrap/js/collapse.es6.js @@ -1,10 +1,9 @@ -import nojQueryMode from './nojquerymode.es6'; import Collapse from '../../../../../node_modules/bootstrap/js/src/collapse'; window.bootstrap = window.bootstrap || {}; window.bootstrap.Collapse = Collapse; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const collapses = { ...Joomla.getOptions('bootstrap.collapse'), ...Joomla.getOptions('bootstrap.accordion') }; // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/dropdown.es6.js b/build/media_source/vendor/bootstrap/js/dropdown.es6.js index 284df6c835f2c..aa39a156e039d 100644 --- a/build/media_source/vendor/bootstrap/js/dropdown.es6.js +++ b/build/media_source/vendor/bootstrap/js/dropdown.es6.js @@ -1,10 +1,9 @@ -import nojQueryMode from './nojquerymode.es6'; import Dropdown from '../../../../../node_modules/bootstrap/js/src/dropdown'; window.bootstrap = window.bootstrap || {}; window.bootstrap.Dropdown = Dropdown; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const dropdowns = Joomla.getOptions('bootstrap.dropdown'); // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/modal.es6.js b/build/media_source/vendor/bootstrap/js/modal.es6.js index 3a38354c17ca1..b074c535a002d 100644 --- a/build/media_source/vendor/bootstrap/js/modal.es6.js +++ b/build/media_source/vendor/bootstrap/js/modal.es6.js @@ -1,4 +1,3 @@ -import nojQueryMode from './nojquerymode.es6'; import Modal from '../../../../../node_modules/bootstrap/js/src/modal'; Joomla = Joomla || {}; @@ -134,7 +133,7 @@ Joomla.iframeButtonClick = (options) => { } }; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const modals = Joomla.getOptions('bootstrap.modal'); // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/nojquerymode.es6.js b/build/media_source/vendor/bootstrap/js/nojquerymode.es6.js deleted file mode 100644 index 20460c5f90b03..0000000000000 --- a/build/media_source/vendor/bootstrap/js/nojquerymode.es6.js +++ /dev/null @@ -1,7 +0,0 @@ -// Ensure vanilla mode, for consistency of the events -if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) { - document.body.dataset.bsNoJquery = ''; -} -const nojQueryMode = true; - -export default nojQueryMode; diff --git a/build/media_source/vendor/bootstrap/js/popover.es6.js b/build/media_source/vendor/bootstrap/js/popover.es6.js index 1aed8a9a8f185..8402ef4bf05e9 100644 --- a/build/media_source/vendor/bootstrap/js/popover.es6.js +++ b/build/media_source/vendor/bootstrap/js/popover.es6.js @@ -1,4 +1,3 @@ -import nojQueryMode from './nojquerymode.es6'; import Popover from '../../../../../node_modules/bootstrap/js/src/popover'; import Tooltip from '../../../../../node_modules/bootstrap/js/src/tooltip'; @@ -6,7 +5,7 @@ window.bootstrap = window.bootstrap || {}; window.bootstrap.Popover = Popover; window.bootstrap.Tooltip = Tooltip; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const tooltips = Joomla.getOptions('bootstrap.tooltip'); const popovers = Joomla.getOptions('bootstrap.popover'); diff --git a/build/media_source/vendor/bootstrap/js/scrollspy.es6.js b/build/media_source/vendor/bootstrap/js/scrollspy.es6.js index 8ddad7948d2e5..5f6b90842663d 100644 --- a/build/media_source/vendor/bootstrap/js/scrollspy.es6.js +++ b/build/media_source/vendor/bootstrap/js/scrollspy.es6.js @@ -1,10 +1,9 @@ -import nojQueryMode from './nojquerymode.es6'; import Scrollspy from '../../../../../node_modules/bootstrap/js/src/scrollspy'; window.bootstrap = window.bootstrap || {}; window.bootstrap.Scrollspy = Scrollspy; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const scrollspys = Joomla.getOptions('bootstrap.scrollspy'); // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/tab.es6.js b/build/media_source/vendor/bootstrap/js/tab.es6.js index 0e148f91517eb..867622633b1d4 100644 --- a/build/media_source/vendor/bootstrap/js/tab.es6.js +++ b/build/media_source/vendor/bootstrap/js/tab.es6.js @@ -1,4 +1,3 @@ -import nojQueryMode from './nojquerymode.es6'; import Tab from '../../../../../node_modules/bootstrap/js/src/tab'; window.Joomla = window.Joomla || {}; @@ -69,7 +68,7 @@ Joomla.initialiseTabs = (el, options) => { } }; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const tabs = Joomla.getOptions('bootstrap.tabs'); // Initialise the elements diff --git a/build/media_source/vendor/bootstrap/js/toast.es6.js b/build/media_source/vendor/bootstrap/js/toast.es6.js index d71639da8d731..25ad63d99cefd 100644 --- a/build/media_source/vendor/bootstrap/js/toast.es6.js +++ b/build/media_source/vendor/bootstrap/js/toast.es6.js @@ -1,10 +1,9 @@ -import nojQueryMode from './nojquerymode.es6'; import Toast from '../../../../../node_modules/bootstrap/js/src/toast'; window.bootstrap = window.bootstrap || {}; window.bootstrap.Toast = Toast; -if (nojQueryMode && Joomla && Joomla.getOptions) { +if (Joomla && Joomla.getOptions) { // Get the elements/configurations from the PHP const toasts = Joomla.getOptions('bootstrap.toast'); // Initialise the elements