mirror of https://github.com/jenkinsci/jenkins.git
Fix JavaScript formatting
This commit is contained in:
parent
a58f0d8395
commit
62dbda9403
|
@ -37,7 +37,10 @@ function dropdown() {
|
|||
duration: 250,
|
||||
onShow: (instance) => {
|
||||
// Make sure only one instance is visible at all times in case of breadcrumb
|
||||
if(instance.reference.classList.contains('hoverable-model-link') || instance.reference.classList.contains('hoverable-children-model-link')) {
|
||||
if (
|
||||
instance.reference.classList.contains("hoverable-model-link") ||
|
||||
instance.reference.classList.contains("hoverable-children-model-link")
|
||||
) {
|
||||
const dropdowns = document.querySelectorAll("[data-tippy-root]");
|
||||
Array.from(dropdowns).forEach((element) => {
|
||||
// Check if the Tippy.js instance exists
|
||||
|
|
Loading…
Reference in New Issue