-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
… classes (moismailzai) This PR was merged into the 4.x branch. Discussion ---------- fix #5526 #5527 #5532 by updating js style modifications to classes I believe this addresses the items I missed in #5504. Specifically, JavaScripts that modify HTML elements now use classes instead of styles. This should close out issues #5526 #5527 and #5532. Commits ------- 3e37635 fix #5526 #5527 #5532 by updating js style modifications to classes
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export function toggleVisibilityClasses(element, removeVisibility) { | ||
if (removeVisibility) { | ||
element.classList.remove('d-block') | ||
element.classList.add('d-none') | ||
} else { | ||
element.classList.remove('d-none') | ||
element.classList.add('d-block') | ||
} | ||
} |