mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Remove jQuery .attr from the issue author dropdown (#29915)
				
					
				
			- Switched from jQuery `.attr` to plain javascript `.getAttribute` - Tested the issue author dropdown functionality and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
		| @@ -93,9 +93,9 @@ function initRepoIssueListAuthorDropdown() { | |||||||
|   const $searchDropdown = $('.user-remote-search'); |   const $searchDropdown = $('.user-remote-search'); | ||||||
|   if (!$searchDropdown.length) return; |   if (!$searchDropdown.length) return; | ||||||
|  |  | ||||||
|   let searchUrl = $searchDropdown.attr('data-search-url'); |   let searchUrl = $searchDropdown[0].getAttribute('data-search-url'); | ||||||
|   const actionJumpUrl = $searchDropdown.attr('data-action-jump-url'); |   const actionJumpUrl = $searchDropdown[0].getAttribute('data-action-jump-url'); | ||||||
|   const selectedUserId = $searchDropdown.attr('data-selected-user-id'); |   const selectedUserId = $searchDropdown[0].getAttribute('data-selected-user-id'); | ||||||
|   if (!searchUrl.includes('?')) searchUrl += '?'; |   if (!searchUrl.includes('?')) searchUrl += '?'; | ||||||
|  |  | ||||||
|   $searchDropdown.dropdown('setting', { |   $searchDropdown.dropdown('setting', { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yarden Shoham
					Yarden Shoham