mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Improve repo/user/org search (#27030)
* Fix a regression from #26809 (the `data-org` is missing) * Remove unnecessary style Screenshots:   
This commit is contained in:
		@@ -47,7 +47,7 @@ export function initRepoSettingSearchTeamBox() {
 | 
			
		||||
  $searchTeamBox.search({
 | 
			
		||||
    minCharacters: 2,
 | 
			
		||||
    apiSettings: {
 | 
			
		||||
      url: `${appSubUrl}/org/${$searchTeamBox.data('org')}/teams/-/search?q={query}`,
 | 
			
		||||
      url: `${appSubUrl}/org/${$searchTeamBox.attr('data-org-name')}/teams/-/search?q={query}`,
 | 
			
		||||
      headers: {'X-Csrf-Token': csrfToken},
 | 
			
		||||
      onResponse(response) {
 | 
			
		||||
        const items = [];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user