Skip to content

Commit

Permalink
Replace Prototype.js with native JavaScript (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored May 12, 2023
1 parent f540df3 commit f34cc43
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@
<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 f34cc43

Please sign in to comment.