From 678bb62bb372a419eee517b19651127217907367 Mon Sep 17 00:00:00 2001 From: kilo Date: Fri, 14 Jul 2017 12:49:41 +0200 Subject: [PATCH] Update main.js --- public/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 6d9b3bf3..355063e5 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -83,8 +83,8 @@ document.getElementsByClassName("form-input refine")[0].addEventListener("click" document.getElementsByClassName("box refine")[0].style.display = document.getElementsByClassName("box refine")[0].style.display == "none" ? "block" : "none"; if(document.getElementsByClassName("form-input refine-searchbox")[0].value != document.getElementsByClassName("form-input search-box")[0].value) document.getElementsByClassName("form-input refine-searchbox")[0].value = document.getElementsByClassName("form-input search-box")[0].value; - if(document.getElementsByClassName("form-input refine-category")[0].value != document.getElementsByClassName("form-input form-category")[0].value) - document.getElementsByClassName("form-input refine-category")[0].value = document.getElementsByClassName("form-input form-category")[0].value; + if(document.getElementsByClassName("form-input refine-category")[0].selectedIndex != document.getElementsByClassName("form-input form-category")[0].selectedIndex) + document.getElementsByClassName("form-input refine-category")[0].selectedIndex = document.getElementsByClassName("form-input form-category")[0].selectedIndex; e.preventDefault(); }); // @license-end