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

View file

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