Commit 1e1f546a authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed small bug in stats semester chooser

parent d9836e21
......@@ -32,7 +32,11 @@ $( document ).ready(function () {
{% for s in semester if s.semester != '' %}
$("#semesterselect").append('<option value="{{ s.from.timestamp()|int }}-{{ s.to.timestamp()|int }}">{{ s.semester }}</option>');
{% endfor %}
{% if filter %}
$("#semesterselect").val("{{ filter }}")
{% else %}
$("#semesterselect").val("")
{% endif %}
$("#semesterselect").on("change", function () {
window.location.href="{{ url_for('stats') }}?filter="+$("#semesterselect").val()+"#semesterstats";
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment