Move function out of compressor
This commit is contained in:
parent
ec7f5a2047
commit
8c7bbd4b39
1 changed files with 6 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{% compress js %}
|
||||
<script src="{{ static('libs/nouislider.min.js') }}" type="text/javascript"></script>
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue