Making document ready events consistent

This commit is contained in:
Matthew Barbour 2020-06-21 14:24:13 -05:00 committed by Shish
parent 8fe7038e73
commit 2f313b704a

View file

@ -15,7 +15,7 @@ class CustomSetupTheme extends SetupTheme
$i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup";
$html = "
<script type='text/javascript'><!--
$(document).ready(function() {
document.addEventListener('DOMContentLoaded', () => {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {
if($(\"#$i\").is(\":hidden\")) {