Skip to content
Snippets Groups Projects
Commit aa233b48 authored by Shelane French's avatar Shelane French
Browse files

fixes lint issues with javascript

parent ee8ccb4e
No related branches found
No related tags found
No related merge requests found
Pipeline #461658 passed
(function () {
'use strict';
/**
* Attaches the behavior to bootstrap carousel view.
*/
Drupal.behaviors.views_bootstrap_carousel = {
attach: function (context, settings) {
attach(context, settings) {
const carousels = document.querySelectorAll('.carousel-inner');
carousels.forEach(function (carousel) {
const children = carousel.querySelectorAll('div');
if (children.length === 1) {
const siblings = carousel.parentElement.querySelectorAll('.carousel-control, .carousel-indicators');
const siblings = carousel.parentElement.querySelectorAll(
'.carousel-control, .carousel-indicators',
);
siblings.forEach(function (sibling) {
sibling.style.display = 'none';
});
}
});
}
},
};
}());
})();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment