mirror of
				https://github.com/arcan1s/ahriman.git
				synced 2025-10-31 05:43:41 +00:00 
			
		
		
		
	set both value and innerText during search
current implementation just adds package name with the description which is incorrect
This commit is contained in:
		| @ -34,7 +34,8 @@ | ||||
|                 success: function (resp) { | ||||
|                     const $options = resp.map(function (pkg) { | ||||
|                         const $option = document.createElement("option"); | ||||
|                         $option.value = `${pkg.package} (${pkg.description})`; | ||||
|                         $option.value = pkg.package; | ||||
|                         $option.innerText = `${pkg.package} (${pkg.description})`; | ||||
|                         return $option; | ||||
|                     }); | ||||
|                     $knownPackages.empty().append($options); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user