Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions ietf/static/js/meeting-interim-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ const interimRequest = (function() {
// increment formset counter
template.find(':input')
.each(function () {
const name = $(this)
.attr('name')
.replace('-' + (total - 1) + '-', '-' + total + '-');
const id = 'id_' + name;
$(this)
.attr({ name: name, id: id })
.val('');
let name = $(this)
.attr('name');
if (name) {
name.replace('-' + (total - 1) + '-', '-' + total + '-');
const id = 'id_' + name;
$(this)
.attr({ name: name, id: id })
.val('');
}
});

template.find('label')
Expand Down