fix js
All checks were successful
/ release (push) Successful in 29s

This commit is contained in:
speatzle 2024-10-08 13:01:59 +02:00
parent 849b4cf004
commit dcbddfc6cd
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
function setLibrary(library_id) { function setLibrary(library_id) {
if (library_id == "-1") { if (library_id == "-1") {
} else {
window.location.href = "/stats"; window.location.href = "/stats";
} else {
window.location.href = "/stats/" + library_id;
} }
window.location.href = "/stats/" + library_id;
} }

View file

@ -1,4 +1,5 @@
{{template "head"}} {{template "head"}}
<script src="/static/js/library_filter.js"></script>
<h2>Stats</h2> <h2>Stats</h2>
<label for="library">Library:</label> <label for="library">Library:</label>
<select id="library" name="library" onchange="setLibrary(this.value)" class="short-button"> <select id="library" name="library" onchange="setLibrary(this.value)" class="short-button">