fix: Make the author button work on doc submit (#3850)

This commit is contained in:
Lars Eggert 2022-04-20 18:52:54 +03:00 committed by GitHub
parent 3fdfa3a6ef
commit 92e67aca8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
$(document) $(document)
.ready(function () { .ready(function () {
// fill in submitter info when an author button is clicked // fill in submitter info when an author button is clicked
$("form.idsubmit input[type=button].author") $("form.idsubmit button.author")
.on("click", function () { .on("click", function () {
var name = $(this) var name = $(this)
.data("name"); .data("name");
@ -66,4 +66,4 @@ $(document)
next.insertAfter(cloner); next.insertAfter(cloner);
}); });
}); });

View file

@ -595,5 +595,7 @@
{% include "submit/problem-reports-footer.html" %} {% include "submit/problem-reports-footer.html" %}
{% endblock %} {% endblock %}
{% block js %} {% block js %}
{{ all_forms|merge_media:'js' }}<script src="{% static "ietf/js/list.js" %}"></script> {{ all_forms|merge_media:'js' }}
{% endblock %} <script src="{% static "ietf/js/list.js" %}"></script>
<script src="{% static "ietf/js/draft-submit.js" %}"></script>
{% endblock %}