SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 2a7a7cc8 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Move another js to a static file

parent 4770e658
No related branches found
No related tags found
No related merge requests found
$(function() {
$('[name="decision"]').on('change', function() {
var val = $('[name="decision"]:checked').val();
if(val == 'decline') {
$('[name="refusal_reason"]').closest('.form-group').show();
$('[name="refereeing_cycle"]').closest('.form-group').hide();
} else {
$('[name="refusal_reason"]').closest('.form-group').hide();
$('[name="refereeing_cycle"]').closest('.form-group').show();
}
}).trigger('change');
});
{% extends 'submissions/pool/base.html' %}
{% load bootstrap %}
{% load staticfiles %}
{% load guardian_tags %}
{% load scipost_extras %}
{% load submissions_extras %}
......@@ -46,20 +47,6 @@
</p>
</form>
<script>
$(function() {
$('[name="decision"]').on('change', function() {
var val = $('[name="decision"]:checked').val();
if(val == 'decline') {
$('[name="refusal_reason"]').closest('.form-group').show();
$('[name="refereeing_cycle"]').closest('.form-group').hide();
} else {
$('[name="refusal_reason"]').closest('.form-group').hide();
$('[name="refereeing_cycle"]').closest('.form-group').show();
}
}).trigger('change');
});
</script>
<script type="text/javascript" src="{% static 'scipost/editorial-assignment.js' %}"></script>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment