mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Forbid jQuery .prop and fix related issues (#29832)
				
					
				
			The issue checkbox code received a few more cleanups and I specifically tested it. The other changes are trivial. Also, I checked the cases for how many elements match the jQuery selection to determine querySelector vs. querySelectorAll. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -49,7 +49,7 @@ export function initAdminCommon() { | ||||
|   } | ||||
|  | ||||
|   function onUsePagedSearchChange() { | ||||
|     if ($('#use_paged_search').prop('checked')) { | ||||
|     if (document.getElementById('use_paged_search').checked) { | ||||
|       showElem('.search-page-size'); | ||||
|       $('.search-page-size').find('input').attr('required', 'required'); | ||||
|     } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user