Skip to content

Commit 3b4ae89

Browse files
committed
Fix from Ole Laursen for the javascript managing status-change document relationships. Fixes ietf-tools#1899.
- Legacy-Id: 10757
1 parent a9abd3c commit 3b4ae89

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

ietf/static/ietf/js/status-change-edit-relations.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
$(function () {
2-
var form = $(".content-wrapper form");
3-
var newRowHtml = form.find(".new-row").get(0).outerHTML;
2+
var form = $(".new-relation-row").closest("form");
3+
var newRowHtml = form.find(".new-relation-row").get(0).outerHTML;
44
var counter = 1;
55

66
form.on("click", ".delete", function (e) {
77
e.preventDefault();
88
$(this).closest(".row").remove();
99
});
1010

11-
form.on("keydown", ".new-row input[type=text]", function () {
12-
var top = $(this).closest(".new-row");
13-
top.removeClass("new-row");
11+
form.on("keydown", ".new-relation-row input[type=text]", function () {
12+
var top = $(this).closest(".new-relation-row");
13+
top.removeClass("new-relation-row");
1414
top.find(".help-block").remove();
1515
top.find(".delete").show();
1616
top.find("input,select").each(function () {

ietf/templates/doc/status_change/edit_related_rows.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</div>
2121
{% endfor %}
2222

23-
<div class="form-group new-row">
23+
<div class="form-group new-relation-row">
2424
<div class="row">
2525
<div class="col-md-5">
2626
<input name="new_relation_row_" type="text" class="form-control" placeholder="rfc...">

0 commit comments

Comments
 (0)