Move function out of compressor

This commit is contained in:
cuom1999 2023-07-26 00:19:01 +07:00
parent 8c7bbd4b39
commit 9019bcb990

View file

@ -208,6 +208,15 @@
</script> </script>
{% endcompress %} {% endcompress %}
{% if show_contest_mode %} {% if show_contest_mode %}
<script type="text/javascript">
$(function() {
window.register_contest_notification("{{url('contest_clarification_ajax', request.participation.contest.key)}}");
{% if show_contest_mode %}
$('.left-sidebar').hide();
{% endif %}
});
</script>
{% compress js %} {% compress js %}
<script src="{{ static('libs/tablesorter.js') }}" type="text/javascript"></script> <script src="{{ static('libs/tablesorter.js') }}" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
@ -235,11 +244,6 @@
return (node.hasClass('p') ? text.replace(/p$/, '') : text); return (node.hasClass('p') ? text.replace(/p$/, '') : text);
} }
}); });
window.register_contest_notification("{{url('contest_clarification_ajax', request.participation.contest.key)}}");
{% if show_contest_mode %}
$('.left-sidebar').hide();
{% endif %}
}); });
</script> </script>
{% endcompress %} {% endcompress %}