Modify the way JS links are hidden/unhidden
This commit is contained in:
parent
f559d2f78e
commit
59f1de1df6
2 changed files with 3 additions and 3 deletions
|
|
@ -472,7 +472,7 @@ a {
|
|||
}
|
||||
|
||||
&[href='javascript:'] {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ const init = function() {
|
|||
|
||||
if (navItem) navItem.parentElement.classList.add('uk-active');
|
||||
|
||||
// Display hidden links triggering JavaScript
|
||||
// Display hidden links triggering JavaScript, so they are visible only if JavaScript is enabled
|
||||
document.querySelectorAll('a[href="javascript:"]').forEach(element => {
|
||||
element.style.display = 'inline-block';
|
||||
element.style.visibility = 'unset';
|
||||
});
|
||||
|
||||
// Prevent redundant submits of a form
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue