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