Making document ready events consistent
This commit is contained in:
		
							parent
							
								
									8fe7038e73
								
							
						
					
					
						commit
						2f313b704a
					
				| @ -15,7 +15,7 @@ class CustomSetupTheme extends SetupTheme | |||||||
|         $i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup"; |         $i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup"; | ||||||
|         $html = " |         $html = " | ||||||
| 			<script type='text/javascript'><!-- | 			<script type='text/javascript'><!-- | ||||||
| 			$(document).ready(function() { | 			document.addEventListener('DOMContentLoaded', () => { | ||||||
| 				$(\"#$i-toggle\").click(function() { | 				$(\"#$i-toggle\").click(function() { | ||||||
| 					$(\"#$i\").slideToggle(\"slow\", function() { | 					$(\"#$i\").slideToggle(\"slow\", function() { | ||||||
| 						if($(\"#$i\").is(\":hidden\")) { | 						if($(\"#$i\").is(\":hidden\")) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user