reset item search button functionality
This commit is contained in:
parent
ef386a5aaf
commit
9e36bf9cd1
1 changed files with 7 additions and 0 deletions
|
@ -190,6 +190,13 @@ function doItemSearch() {
|
||||||
displayItems(items_copy);
|
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() {
|
function init_items() {
|
||||||
items_expanded = items.filter( (i) => !("remapID" in i) ).map( (i) => expandItem(i, []) );
|
items_expanded = items.filter( (i) => !("remapID" in i) ).map( (i) => expandItem(i, []) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue