From 8c7bbd4b39814bcb8b5f935300a700f91973d5d4 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 26 Jul 2023 00:12:54 +0700 Subject: [PATCH] Move function out of compressor --- templates/problem/list-base.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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();