diff --git a/public/js/main.js b/public/js/main.js index 6a194914..6d9b3bf3 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -83,6 +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; - e.preventDefault(); + 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; + e.preventDefault(); }); // @license-end