summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-12-06 11:22:52 +0100
committerYorhel <git@yorhel.nl>2018-12-06 11:22:55 +0100
commitababd071579d44252e9c61fa10ee8cc7abd97e57 (patch)
tree642c8d6a8951a851d5b7ffa5265c5eb9de5f6b56
parent2586f9c78693705807d6c8122ec36eae5de4a33d (diff)
js/filters: Fix hidden tag/trait selection on tab switch
This code is a horrible piece of shit. I can't tell if I broke something else with this change. Testing seems to suggest it's okay. https://vndb.org/t2520.281
-rw-r--r--data/js/filter.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/js/filter.js b/data/js/filter.js
index 0103cc2a..951e379f 100644
--- a/data/js/filter.js
+++ b/data/js/filter.js
@@ -481,6 +481,7 @@ function filFTagInput(name, label, type) {
if(item.getAttribute('meta') == 'yes')
alert('Can\'t use meta '+type+'s here!');
else {
+ obj.parentNode.fil_val = null;
addtag(byName(obj.parentNode, 'ul')[0], item.getAttribute('id'), item.firstChild.nodeValue, item.getAttribute('groupname'));
selectField(obj);
}