upgrade wtform
This commit is contained in:
parent
8287b01e40
commit
4105974fe0
4 changed files with 13 additions and 13 deletions
|
@ -44,8 +44,8 @@ window.fieldlist = {
|
|||
var template = templateTag.content.cloneNode(true);
|
||||
var id = templateTag.dataset['fieldlistNextId']++;
|
||||
for(let tag of template.querySelectorAll('[name], [id]')){
|
||||
tag.name = tag.name.replace(/^custom-/, name+'-'+id+'-')
|
||||
tag.id = tag.id.replace(/^custom-/, name+'-'+id+'-')
|
||||
tag.name = tag.name.replace(/^custom/, `${name}-${id}`)
|
||||
tag.id = tag.id.replace(/^custom/, `${name}-${id}`)
|
||||
};
|
||||
templateTag.parentNode.querySelector('ul').appendChild(template);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue