UI: fix searchCategory dropdown

This commit is contained in:
kaso17 2017-08-11 18:55:47 +02:00
parent 33a7db5ec4
commit 1332b49370
1 changed files with 2 additions and 2 deletions

View File

@ -735,9 +735,9 @@ function showSearch(selectedIndexer, query) {
}
var select = $('#searchCategory');
select.html("<option value=''>-- All --</option>");
$.each(cats, function (value, key) {
$.each(cats, function (index, value) {
select.append($("<option></option>")
.attr("value", value).text(key + ' (' + value + ')'));
.attr("value", value["ID"]).text(value["ID"] + ' (' + value["Name"] + ')'));
});
};