accidentally submitting a post twice (with Javascript) and modifying the move-old-files-to-archive code to not move the files away if they belong to the same submission as the one we're accepting (this mitigates a concurrent post to at least not end up with a non-existing draft). - Legacy-Id: 4112
27 lines
618 B
HTML
27 lines
618 B
HTML
{% extends "submit/submit_base.html" %}
|
|
|
|
{% block title %}Confirm Auto-Post{% endblock %}
|
|
|
|
|
|
{% block submit_content %}
|
|
|
|
<h2>Confirm auto-post</h2>
|
|
<p>
|
|
Authorization key accepted. Please press the button below to finish Auto-Post of <strong>{{ detail.filename }}-{{ detail.revision }}</strong>
|
|
</p>
|
|
<form action="" method="post">
|
|
<input type="submit" value="Auto-Post" />
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
jQuery(function () {
|
|
jQuery("form").submit(function() {
|
|
if (this.submittedAlready)
|
|
return false;
|
|
else
|
|
this.submittedAlready = true;
|
|
});
|
|
});
|
|
{% endblock %}
|