diff --git a/www/assets/js/history-loggedin.js b/www/assets/js/history-loggedin.js
index 7f50e911a5..a5180c8114 100644
--- a/www/assets/js/history-loggedin.js
+++ b/www/assets/js/history-loggedin.js
@@ -32,12 +32,19 @@
function handleDaySelector() {
const daySelector = document.querySelector("select[name=days]");
+ const filter = document.getElementById('filter');
+
daySelector.addEventListener("change", (e) => {
const days = e.target.value;
const protocol = window.location.protocol;
const hostname = window.location.hostname;
- const redirectUri = protocol + "//" + hostname + "/testlog/" + days + "/";
+ if (filter.value) {
+ document.querySelector('form[name=filterLog]').submit();
+ return;
+ }
+
+ const redirectUri = protocol + "//" + hostname + "/testlog/" + days + "/";
window.location = redirectUri;
});
}
diff --git a/www/resources/views/pages/testhistory.blade.php b/www/resources/views/pages/testhistory.blade.php
index 77bf3920a9..1eb3c6546a 100644
--- a/www/resources/views/pages/testhistory.blade.php
+++ b/www/resources/views/pages/testhistory.blade.php
@@ -16,7 +16,7 @@
-
+
@if ($is_logged_in)