Skip to content

Commit

Permalink
Merge pull request #26 from basil/remove-prototype
Browse files Browse the repository at this point in the history
Replace Prototype.js with native JavaScript
  • Loading branch information
malice00 authored Jul 1, 2023
2 parents 33cf04c + 2e8433a commit 2524ddf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ Portions of this code copied from the Jenkins Project. See LICENSE.md for notice
<script>
(function() {
Behaviour.specify("#recurse", 'ListView', 0, function(e) {
var nestedElements = $$('SPAN.nested')
var nestedElements = document.querySelectorAll('SPAN.nested')
e.onclick = function() {
nestedElements.each(function(el) {
e.checked ? el.show() : el.hide();
nestedElements.forEach(function(el) {
el.style.display = e.checked ? '' : 'none';
});
}
});
Expand Down

0 comments on commit 2524ddf

Please sign in to comment.