diff --git a/templates/problem/list-base.html b/templates/problem/list-base.html index e1ac630..5662180 100644 --- a/templates/problem/list-base.html +++ b/templates/problem/list-base.html @@ -60,6 +60,12 @@ window.point_start = {{point_start}}; window.point_end = {{point_end}}; window.point_values = {{point_values|json|safe}}; + function clear_point_interval() { + if ($('#search').val() !== "{{ search_query or '' }}") { + $('#point-start').remove(); + $('#point-end').remove(); + } + } {% compress js %} @@ -74,13 +80,6 @@ $category.prop('disabled', !$category.val()); } - function clear_point_interval() { - if ($('#search').val() !== "{{ search_query or '' }}") { - $('#point-start').remove(); - $('#point-end').remove(); - } - } - function clean_submit() { prep_form(); clear_point_interval();