Skip to content

Commit

Permalink
fix: small formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
githost committed Jul 3, 2023
1 parent 72da6ae commit f03e4f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions www/assets/js/history-loggedin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@

function handleDaySelector() {
const daySelector = document.querySelector("select[name=days]");
const filter = document.getElementById('filter');
const filter = document.getElementById('filter');

daySelector.addEventListener("change", (e) => {
const days = e.target.value;
const protocol = window.location.protocol;
const hostname = window.location.hostname;

if (filter.value) {
document.querySelector('form[name=filterLog]').submit();
return;
}
if (filter.value) {
document.querySelector('form[name=filterLog]').submit();
return;
}

const redirectUri = protocol + "//" + hostname + "/testlog/" + days + "/";
const redirectUri = protocol + "//" + hostname + "/testlog/" + days + "/";
window.location = redirectUri;
});
}
Expand Down

0 comments on commit f03e4f3

Please sign in to comment.