mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +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:
parent
427ba0f0ea
commit
5a6d0e0000
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user