fix: Re-enable interim series "add session" button (#5485)
Fixes #5478 Co-authored-by: Nicolas Giard <github@ngpixel.com>
This commit is contained in:
parent
ec7b974d52
commit
732cecf0e9
|
@ -44,13 +44,15 @@ const interimRequest = (function() {
|
||||||
// increment formset counter
|
// increment formset counter
|
||||||
template.find(':input')
|
template.find(':input')
|
||||||
.each(function () {
|
.each(function () {
|
||||||
const name = $(this)
|
let name = $(this)
|
||||||
.attr('name')
|
.attr('name');
|
||||||
.replace('-' + (total - 1) + '-', '-' + total + '-');
|
if (name) {
|
||||||
const id = 'id_' + name;
|
name.replace('-' + (total - 1) + '-', '-' + total + '-');
|
||||||
$(this)
|
const id = 'id_' + name;
|
||||||
.attr({ name: name, id: id })
|
$(this)
|
||||||
.val('');
|
.attr({ name: name, id: id })
|
||||||
|
.val('');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
template.find('label')
|
template.find('label')
|
||||||
|
|
Loading…
Reference in a new issue