reset item search button functionality

This commit is contained in:
ferricles 2022-05-12 18:09:10 -07:00
parent ef386a5aaf
commit 9e36bf9cd1

View file

@ -190,6 +190,13 @@ function doItemSearch() {
displayItems(items_copy);
}
function resetItemSearch() {
resetFields = ["name-choice", "category-choice", "rarity-choice", "level-choice", "filter1-choice", "filter2-choice", "filter3-choice", "filter4-choice"]
for (const field of resetFields) {
document.getElementById(field).value = "";
}
}
function init_items() {
items_expanded = items.filter( (i) => !("remapID" in i) ).map( (i) => expandItem(i, []) );
}