Making document ready events consistent
This commit is contained in:
parent
8fe7038e73
commit
2f313b704a
1 changed files with 1 additions and 1 deletions
|
@ -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\")) {
|
||||
|
|
Reference in a new issue