Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build/build-modules-js/build-bootstrap-js.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ 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',
],
},
});
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/alert.es6.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import nojQueryMode from './nojquerymode.es6';
import Alert from '../../../../../node_modules/bootstrap/js/src/alert';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Alert = Alert;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const alerts = Joomla.getOptions('bootstrap.alert');
// Initialise the elements
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/button.es6.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import nojQueryMode from './nojquerymode.es6';
import Button from '../../../../../node_modules/bootstrap/js/src/button';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Button = Button;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const buttons = Joomla.getOptions('bootstrap.button');
// Initialise the elements
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/carousel.es6.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import nojQueryMode from './nojquerymode.es6';
import Carousel from '../../../../../node_modules/bootstrap/js/src/carousel';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Carousel = Carousel;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const carousels = Joomla.getOptions('bootstrap.carousel');
// Initialise the elements
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/collapse.es6.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import nojQueryMode from './nojquerymode.es6';
import Collapse from '../../../../../node_modules/bootstrap/js/src/collapse';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Collapse = Collapse;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const collapses = { ...Joomla.getOptions('bootstrap.collapse'), ...Joomla.getOptions('bootstrap.accordion') };
// Initialise the elements
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/dropdown.es6.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import nojQueryMode from './nojquerymode.es6';
import Dropdown from '../../../../../node_modules/bootstrap/js/src/dropdown';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Dropdown = Dropdown;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const dropdowns = Joomla.getOptions('bootstrap.dropdown');
// Initialise the elements
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/modal.es6.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import nojQueryMode from './nojquerymode.es6';
import Modal from '../../../../../node_modules/bootstrap/js/src/modal';

Joomla = Joomla || {};
Expand Down Expand Up @@ -133,12 +134,7 @@ Joomla.iframeButtonClick = (options) => {
}
};

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const modals = Joomla.getOptions('bootstrap.modal');
// Initialise the elements
Expand Down
7 changes: 7 additions & 0 deletions build/media_source/vendor/bootstrap/js/nojquerymode.es6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// 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;
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/popover.es6.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import nojQueryMode from './nojquerymode.es6';
import Popover from '../../../../../node_modules/bootstrap/js/src/popover';
import Tooltip from '../../../../../node_modules/bootstrap/js/src/tooltip';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Popover = Popover;
window.bootstrap.Tooltip = Tooltip;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const tooltips = Joomla.getOptions('bootstrap.tooltip');
const popovers = Joomla.getOptions('bootstrap.popover');
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/scrollspy.es6.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import nojQueryMode from './nojquerymode.es6';
import Scrollspy from '../../../../../node_modules/bootstrap/js/src/scrollspy';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Scrollspy = Scrollspy;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const scrollspys = Joomla.getOptions('bootstrap.scrollspy');
// Initialise the elements
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/tab.es6.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import nojQueryMode from './nojquerymode.es6';
import Tab from '../../../../../node_modules/bootstrap/js/src/tab';

window.Joomla = window.Joomla || {};
Expand Down Expand Up @@ -68,12 +69,7 @@ Joomla.initialiseTabs = (el, options) => {
}
};

if (Joomla && Joomla.getOptions) {
// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const tabs = Joomla.getOptions('bootstrap.tabs');
// Initialise the elements
Expand Down
8 changes: 2 additions & 6 deletions build/media_source/vendor/bootstrap/js/toast.es6.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import nojQueryMode from './nojquerymode.es6';
import Toast from '../../../../../node_modules/bootstrap/js/src/toast';

window.bootstrap = window.bootstrap || {};
window.bootstrap.Toast = Toast;

// Ensure vanilla mode, for consistency of the events
if (!Object.prototype.hasOwnProperty.call(document.body.dataset, 'bsNoJquery')) {
document.body.dataset.bsNoJquery = '';
}

if (Joomla && Joomla.getOptions) {
if (nojQueryMode && Joomla && Joomla.getOptions) {
// Get the elements/configurations from the PHP
const toasts = Joomla.getOptions('bootstrap.toast');
// Initialise the elements
Expand Down