mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Refactor and fix archive link bug (#30535)
Regression of #29920 Fixes: #30569 Also this is a rewriting to eliminate the remaining jQuery usages from code. Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -69,6 +69,10 @@ export function queryElemChildren(parent, selector = '*', fn) { | ||||
|   return applyElemsCallback(parent.querySelectorAll(`:scope > ${selector}`), fn); | ||||
| } | ||||
|  | ||||
| export function queryElems(selector, fn) { | ||||
|   return applyElemsCallback(document.querySelectorAll(selector), fn); | ||||
| } | ||||
|  | ||||
| export function onDomReady(cb) { | ||||
|   if (document.readyState === 'loading') { | ||||
|     document.addEventListener('DOMContentLoaded', cb); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user